In my testing this fixes the redirect loop on logout

This commit is contained in:
Tom Moor
2018-02-12 22:44:43 -08:00
parent 8ebf748cf6
commit ea471b2a19
5 changed files with 6 additions and 8 deletions

View File

@ -11,8 +11,6 @@ type Props = {
const Home = observer(({ auth }: Props) => {
if (auth.authenticated) return <Redirect to="/dashboard" />;
auth.logout();
window.location.href = BASE_URL;
return null;
});