fix(#548): landing change lang

pull/179/head
Rakov 3 years ago
parent 62173b545b
commit bd71c5ef0c
  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