From a050419fdf2c98665b2bff7df8b27be4b87bc049 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 12 Jun 2023 16:19:47 +0200 Subject: [PATCH] fix(user): set the language when saving --- src/stores/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/auth.ts b/src/stores/auth.ts index d2744a9ce..3e57504b1 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -332,9 +332,9 @@ export const useAuthStore = defineStore('auth', () => { const cancel = setModuleLoading(setIsLoadingGeneralSettings) try { const updateSettingsPromise = userSettingsService.update(settings) + setUserSettings({...settings}) await setLanguage() await updateSettingsPromise - setUserSettings({...settings}) if (showMessage) { success({message: i18n.global.t('user.settings.general.savedSuccess')}) }