fix: only try to save user settings when a user is authenticated

This commit is contained in:
kolaente 2022-09-15 12:36:19 +02:00
parent 91976e23f9
commit 2df2bd38e2
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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: {