diff --git a/src/pages/authentication/RegisterPage.jsx b/src/pages/authentication/RegisterPage.jsx index bf38015c..65b7d619 100644 --- a/src/pages/authentication/RegisterPage.jsx +++ b/src/pages/authentication/RegisterPage.jsx @@ -41,7 +41,7 @@ const RegisterPage = () => { const { register, handleSubmit, - formState: { errors }, + formState: { errors },reset } = useForm({ resolver: zodResolver(registerSchema), }); @@ -53,6 +53,7 @@ const RegisterPage = () => { showToast("Your request has been sent successfully. Please stay in touch!"); setRegristered(true); setLoading(false) + reset() } catch (error) { showToast(error.message, "error"); setLoading(false)