|
@@ -33,10 +33,7 @@ export const AuthProvider = ({ children }: { children: any }) => {
|
|
} else {
|
|
} else {
|
|
setAuth(InitialAuthState);
|
|
setAuth(InitialAuthState);
|
|
}
|
|
}
|
|
- }).catch(() => {
|
|
|
|
- setAuth(InitialAuthState);
|
|
|
|
- navigate('/');
|
|
|
|
- });
|
|
|
|
|
|
+ })
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
}, []);
|
|
}, []);
|
|
|
|
|