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;