1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fixes for invalid locale

This commit is contained in:
David Bomba 2024-09-26 14:40:02 +10:00
parent 2ceaf880b8
commit 69834c9362
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ class ClientContact extends Authenticatable implements HasLocalePreference
return $languages->first(function ($item) {
return $item->id == $this->client->getSetting('language_id');
})->locale;
})->locale ?? 'en';
}
public function routeNotificationForMail($notification)

View File

@ -189,7 +189,7 @@ class VendorContact extends Authenticatable implements HasLocalePreference
return $languages->first(function ($item) {
return $item->id == $this->company->getSetting('language_id');
})->locale;
})->locale ?? 'en';
}
/**