瀏覽代碼

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