Skip to content

Commit

Permalink
fix crashing other tabs on login (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
postrowinski committed Apr 4, 2023
1 parent 5b7a35f commit b00d707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mwdb/web/src/components/UserLogin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ export default function UserLogin() {
}
}, [getProviders, isOIDCEnabled]);

if (auth.isAuthenticated) return <Navigate to="/" />;

useEffect(() => {
if (location.state) {
if (
Expand All @@ -75,6 +73,8 @@ export default function UserLogin() {
}
}, []);

if (auth.isAuthenticated) return <Navigate to="/" />;

return (
<div className="user-login">
<ConfirmationModal
Expand Down

0 comments on commit b00d707

Please sign in to comment.