mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-23 13:39:54 +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 const CHANGE_LANG = 'USER_CHANGE_LANG';
|
||||||
export function changeLang(targetLang: string): ThunkAction<Promise<void>> {
|
export function changeLang(targetLang: string): ThunkAction<Promise<void>> {
|
||||||
return async (dispatch, getState) =>
|
return (dispatch, getState) =>
|
||||||
dispatch(setLocale(targetLang)).then((lang: string) => {
|
dispatch(setLocale(targetLang)).then((lang: string) => {
|
||||||
const { id, isGuest, lang: oldLang } = getState().user;
|
const { id, isGuest, lang: oldLang } = getState().user;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user