diff --git a/src/features/AuthStore/hooks/useAuth.tsx b/src/features/AuthStore/hooks/useAuth.tsx index 66ccfc5d..02f0561c 100644 --- a/src/features/AuthStore/hooks/useAuth.tsx +++ b/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)