Browse Source

remove an impossible catch

Sven Czarnian 2 years ago
parent
commit
29e134880d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/contexts/authcontext.tsx

+ 1 - 4
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
   }, []);