Skip to content

Commit

Permalink
fix navigation flooding?
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface committed Nov 13, 2024
1 parent a2e898a commit 7dbbecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Login() {
const navigate = useNavigate();

useEffect(() => {
if (auth.user) {
if (auth.isAuthenticated) {
navigate("/", {replace: true});
}
}, [auth, navigate]);
Expand Down

0 comments on commit 7dbbecf

Please sign in to comment.