Reset from after submitting

This commit is contained in:
2024-07-02 19:57:00 +02:00
parent 4b78471916
commit 29911d9459
+6
View File
@@ -37,6 +37,12 @@ export default function AuthForm({
const handleFormSubmit = async e => { const handleFormSubmit = async e => {
e.preventDefault() e.preventDefault()
onSubmit(formData) onSubmit(formData)
setFormData({
first_name: '',
email: '',
password: '',
password_verification: ''
})
} }
const handleInputChange = e => { const handleInputChange = e => {