remove an impossible catch

This commit is contained in:
Sven Czarnian
2022-11-05 00:34:03 +01:00
parent cdadef9837
commit 29e134880d

View File

@@ -33,10 +33,7 @@ export const AuthProvider = ({ children }: { children: any }) => {
} else { } else {
setAuth(InitialAuthState); setAuth(InitialAuthState);
} }
}).catch(() => { })
setAuth(InitialAuthState);
navigate('/');
});
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); }, []);