fix(#548): landing change lang #179

Merged
andrey.dekterev merged 1 commits from in-548-landing-change-lang into develop 3 years ago
  1. 2
      src/features/AuthStore/hooks/useAuth.tsx

@ -278,7 +278,7 @@ export const useAuth = () => {
setUserInfo(userInfoFetched)
if (includes(window.location.pathname, PAGES.landing && readToken())) {
if (includes(window.location.pathname, PAGES.landing) && readToken()) {
changeLang(navigator.language.substring(0, 2))
} else {
userInfoFetched.language.iso && changeLang(userInfoFetched.language.iso)

Loading…
Cancel
Save