stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx in kaze-0.15.0 vs stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx in kaze-0.16.0
- old
+ new
@@ -17,10 +17,11 @@
setData,
delete: destroy,
processing,
reset,
errors,
+ clearErrors,
} = useForm({
password: '',
})
const confirmUserDeletion = () => {
@@ -39,9 +40,10 @@
}
const closeModal = () => {
setConfirmingUserDeletion(false)
+ clearErrors()
reset()
}
return (
<section className={`space-y-6 ${className}`}>