From 1495b6796ffee4a342da41d0172e5947ff446bc9 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 31 Oct 2021 19:13:31 +0100 Subject: [PATCH] Client - fix language change on preferences update --- fittrackee_client/src/store/modules/user/actions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fittrackee_client/src/store/modules/user/actions.ts b/fittrackee_client/src/store/modules/user/actions.ts index f879f739..1be461b8 100644 --- a/fittrackee_client/src/store/modules/user/actions.ts +++ b/fittrackee_client/src/store/modules/user/actions.ts @@ -136,6 +136,11 @@ export const actions: ActionTree & IUserActions = { USER_STORE.MUTATIONS.UPDATE_AUTH_USER_PROFILE, res.data.data ) + context.commit( + ROOT_STORE.MUTATIONS.UPDATE_LANG, + res.data.data.language + ) + locale.value = res.data.data.language router.push('/profile/preferences') } else { handleError(context, null)