diff --git a/src/App.tsx b/src/App.tsx index 4dc90ec..e7f6757 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,6 +8,7 @@ import FaJson from './langs/fa.json' import { IApiErrorRepsonse } from './types/error.types' import MainRouter from './router/Main' import AuthRouter from './router/Auth' +import { Pages } from './config/Pages' i18next.init({ interpolation: { escapeValue: false }, @@ -45,6 +46,7 @@ const App: FC = () => { setIsLogin('isLogin') } else { setIsLogin('isNotLogin') + window.location.href = Pages.auth.login } }, [])