Skip to content

Commit

Permalink
Fix getUserInterfaceLanguage (#4286)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc authored Jul 4, 2023
1 parent 9313a8c commit 21dc6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function getUserInterfaceLanguage() {
const user: IUser | null = JSON.parse(localStorage.getItem(IDENTITY_KEY));
const language = user?.language ?? appConfig.default_language ?? window.navigator.language ?? 'en';

if (appConfig.profileLanguages.includes(language)) {
if (appConfig.profileLanguages?.includes(language)) {
return language;
} else {
return 'en';
Expand Down

0 comments on commit 21dc6e7

Please sign in to comment.