From 2df2bd38e2b9f86be7e7c5aab744f27cbf2644c3 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 15 Sep 2022 12:36:19 +0200 Subject: [PATCH] fix: only try to save user settings when a user is authenticated --- src/store/modules/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/auth.ts b/src/store/modules/auth.ts index 7457a0aa5..0288c1932 100644 --- a/src/store/modules/auth.ts +++ b/src/store/modules/auth.ts @@ -227,7 +227,7 @@ const authStore : Module = { commit('info', info) 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 await dispatch('saveUserSettings', { settings: {