From 8c8222ff861b0e60e729fb4a8f0d765f190b8834 Mon Sep 17 00:00:00 2001 From: cliu02 <32694266+cliu02@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:00:28 -0800 Subject: [PATCH] fix: clear error on submit --- app/javascript/authentication/SignInForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/authentication/SignInForm.tsx b/app/javascript/authentication/SignInForm.tsx index b6befa7d50..09bb4610bc 100644 --- a/app/javascript/authentication/SignInForm.tsx +++ b/app/javascript/authentication/SignInForm.tsx @@ -127,7 +127,7 @@ const SignInForm = () => { const onSubmit = (data: { email: string; password: string }) => { const { email, password } = data - + setRequestError("") signIn(email, password) .then(() => { window.location.href = getMyAccountPath()