Skip to content

Commit

Permalink
chore: update additional renaming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara committed Dec 7, 2023
1 parent b39ac76 commit 7c7fa83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Models/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getSlugOptions(): SlugOptions

public function preferredLocale(): string
{
return get_written_language_for_signed_language(
return to_written_language(
User::whereBlind('email', 'email_index', $this->contact_person_email)->first()->locale ?? locale()
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Models/RegulatedOrganization.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getSlugOptions(): SlugOptions

public function preferredLocale(): string
{
return get_written_language_for_signed_language(
return to_written_language(
User::whereBlind('email', 'email_index', $this->contact_person_email)->first()->locale ?? locale()
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static function configureCipherSweet(EncryptedRow $encryptedRow): void

public function preferredLocale()
{
return get_written_language_for_signed_language($this->locale);
return to_written_language($this->locale);
}

public function canAccessFilament(Panel $panel): bool
Expand Down

0 comments on commit 7c7fa83

Please sign in to comment.