diff --git a/app/login/login-form.tsx b/app/login/login-form.tsx index 8832757..5254ceb 100644 --- a/app/login/login-form.tsx +++ b/app/login/login-form.tsx @@ -6,7 +6,10 @@ import { loginAction, type LoginState } from "./actions"; const initialState: LoginState = null; -export default function LoginForm({ next }: { next?: string }) { +export default function LoginForm({ + next, + initialError, +}: Readonly<{ next?: string; initialError?: string }>) { const [state, action, pending] = useActionState(loginAction, initialState); return ( @@ -47,6 +50,10 @@ export default function LoginForm({ next }: { next?: string }) { {state?.error ? (

{state.error}

+ ) : initialError === "confirmation-failed" ? ( +

+ Email confirmation failed. Please try registering again. +

) : null}