Fixes: Infinite logout loop
This commit is contained in:
@@ -8,8 +8,10 @@ type Props = {
|
||||
auth: AuthStore,
|
||||
};
|
||||
|
||||
const Home = observer((props: Props) => {
|
||||
if (props.auth.authenticated) return <Redirect to="/dashboard" />;
|
||||
const Home = observer(({ auth }: Props) => {
|
||||
if (auth.authenticated) return <Redirect to="/dashboard" />;
|
||||
auth.logout();
|
||||
|
||||
window.location.href = BASE_URL;
|
||||
return null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user