From ee2352b5268a1f33c4db72237a7c5171f0c1efbc Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Thu, 15 May 2025 10:28:07 +0700
Subject: m

---
 src/components/Login2.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/Login2.tsx')

diff --git a/src/components/Login2.tsx b/src/components/Login2.tsx
index 2164b1a..ef3a603 100644
--- a/src/components/Login2.tsx
+++ b/src/components/Login2.tsx
@@ -54,7 +54,7 @@ function OOldform({ isReg, toggle }: { isReg: boolean; toggle: () => void }) {
 
   const [state, formAction, isPending] = useActionState<FormState, FormData>(
     isReg ? postRegister : postLogin,
-    {},
+    { error: "" },
     "/login",
   );
   // const nav = useRouter();
-- 
cgit v1.2.3

