fix(black screen): timeout logout

pull/162/head
Andrei Dekterev 3 years ago
parent 0f067862f9
commit d5cf526725
  1. 2
      src/features/AuthStore/hooks/useAuth.tsx

@ -278,7 +278,7 @@ export const useAuth = () => {
setUserInfo(userInfoFetched)
if (includes(window.location.pathname, PAGES.landing)) {
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