mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-23 05:29:56 +05:30
Fixes ACCOUNTS-FRONTEND-JC
This commit is contained in:
parent
d25653dd7c
commit
21949c780c
@ -35,7 +35,7 @@ export function setUser(payload: Partial<User>) {
|
||||
|
||||
export const CHANGE_LANG = 'USER_CHANGE_LANG';
|
||||
export function changeLang(targetLang: string): ThunkAction<Promise<void>> {
|
||||
return async (dispatch, getState) =>
|
||||
return (dispatch, getState) =>
|
||||
dispatch(setLocale(targetLang)).then((lang: string) => {
|
||||
const { id, isGuest, lang: oldLang } = getState().user;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user