From 7dbbecfaf163885f329ca28170a82316f72b6b3f Mon Sep 17 00:00:00 2001 From: Soeren Wegener Date: Thu, 14 Nov 2024 00:14:20 +0100 Subject: [PATCH] fix navigation flooding? --- src/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Login.tsx b/src/Login.tsx index 346b9fa..77251fc 100644 --- a/src/Login.tsx +++ b/src/Login.tsx @@ -10,7 +10,7 @@ function Login() { const navigate = useNavigate(); useEffect(() => { - if (auth.user) { + if (auth.isAuthenticated) { navigate("/", {replace: true}); } }, [auth, navigate]);