From 21949c780c64630539852690e27be0732ad103c9 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 22 Jul 2020 02:25:45 +0300 Subject: [PATCH] Fixes ACCOUNTS-FRONTEND-JC --- packages/app/components/user/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/components/user/actions.ts b/packages/app/components/user/actions.ts index 3771b7e..0f4e0a2 100644 --- a/packages/app/components/user/actions.ts +++ b/packages/app/components/user/actions.ts @@ -35,7 +35,7 @@ export function setUser(payload: Partial) { export const CHANGE_LANG = 'USER_CHANGE_LANG'; export function changeLang(targetLang: string): ThunkAction> { - return async (dispatch, getState) => + return (dispatch, getState) => dispatch(setLocale(targetLang)).then((lang: string) => { const { id, isGuest, lang: oldLang } = getState().user;