소스 검색

remove an impossible catch

Sven Czarnian 2 년 전
부모
커밋
29e134880d
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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
   }, []);