remove an impossible catch

This commit is contained in:
Sven Czarnian committed 2022-11-05 00:34:03 +01:00
1 parent cdadef9837
commit 29e134880d
1 file changed
+1 -4
+1 -4
View File
@@ -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
}, []);