diff --git a/src/contexts/authcontext.tsx b/src/contexts/authcontext.tsx index 37ef17f..b3a97d8 100644 --- a/src/contexts/authcontext.tsx +++ b/src/contexts/authcontext.tsx @@ -33,10 +33,7 @@ export const AuthProvider = ({ children }: { children: any }) => { } else { setAuth(InitialAuthState); } - }).catch(() => { - setAuth(InitialAuthState); - navigate('/'); - }); + }) // eslint-disable-next-line react-hooks/exhaustive-deps }, []);