From 29911d9459f13efc79a600da84c8af60f1cc4829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Tue, 2 Jul 2024 19:57:00 +0200 Subject: [PATCH] Reset from after submitting --- components/auth-form/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/auth-form/index.js b/components/auth-form/index.js index 559727b..2641113 100644 --- a/components/auth-form/index.js +++ b/components/auth-form/index.js @@ -37,6 +37,12 @@ export default function AuthForm({ const handleFormSubmit = async e => { e.preventDefault() onSubmit(formData) + setFormData({ + first_name: '', + email: '', + password: '', + password_verification: '' + }) } const handleInputChange = e => {