remove an impossible catch
This commit is contained in:
@@ -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
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user