From bd71c5ef0ce58adba6bdf424ce74f680e5e78171 Mon Sep 17 00:00:00 2001 From: Rakov Date: Mon, 24 Apr 2023 12:52:47 +0300 Subject: [PATCH] fix(#548): landing change lang --- src/features/AuthStore/hooks/useAuth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)