remove an impossible catch
此提交包含在:
1 父節點
cdadef9837
當前提交
29e134880d
1 file changed
+1
-4
@@ -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
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
封鎖使用者