fix: only try to save user settings when a user is authenticated
This commit is contained in:
parent
91976e23f9
commit
2df2bd38e2
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ const authStore : Module<AuthState, RootStoreState> = {
|
||||||
commit('info', info)
|
commit('info', info)
|
||||||
commit('lastUserRefresh')
|
commit('lastUserRefresh')
|
||||||
|
|
||||||
if (typeof info.settings.language === 'undefined' || info.settings.language === '') {
|
if (info.type === AUTH_TYPES.USER && (typeof info.settings.language === 'undefined' || info.settings.language === '')) {
|
||||||
// save current language
|
// save current language
|
||||||
await dispatch('saveUserSettings', {
|
await dispatch('saveUserSettings', {
|
||||||
settings: {
|
settings: {
|
||||||
|
|
Loading…
Reference in a new issue