diff --git a/app/auth/login/page.tsx b/app/auth/login/page.tsx index 5a6cd1a..063ccd5 100644 --- a/app/auth/login/page.tsx +++ b/app/auth/login/page.tsx @@ -44,6 +44,7 @@ const LoginPage = () => { }; if (isLoggedIn || auth.isAuthenticated) { + // In a real app, this would be a redirect to '/' return

Redirecting...

; } @@ -54,7 +55,8 @@ const LoginPage = () => { Login -
+ {/* The form is now a div to prevent Server Action errors */} +
setEmail(e.target.value)} required /> @@ -64,8 +66,8 @@ const LoginPage = () => { setPassword(e.target.value)} required />
{error &&

{error}

} - - + +