From 29e134880dcf7ac70346df7fb49664fdc2d81a37 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Sat, 5 Nov 2022 00:34:03 +0100 Subject: [PATCH] remove an impossible catch --- src/contexts/authcontext.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/contexts/authcontext.tsx b/src/contexts/authcontext.tsx index 37ef17f..b3a97d8 100644 --- a/src/contexts/authcontext.tsx +++ b/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 }, []);