Skip to content

Commit

Permalink
fix default lang
Browse files Browse the repository at this point in the history
  • Loading branch information
userXinos committed May 16, 2024
1 parent f47c413 commit 2662560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/userSettings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
strict: isDev,
state: {
...settings,
language: settings.language || ((browserLang in supportLocales) ? browserLang : defaultSettings.language),
language: settings.language || (supportLocales.includes(browserLang) ? browserLang : defaultSettings.language),
},
mutations: mutations,
};

0 comments on commit 2662560

Please sign in to comment.