Fix timeout running in useForm

This commit is contained in:
Max Wofford 2024-08-18 09:38:35 -04:00
parent 7c6823ff5f
commit 5cb4f2640f

View file

@ -64,11 +64,6 @@ const useForm = (
setData({})
setStatus('default')
}, options.clearOnSubmit)
} else {
setTimeout(() => {
setData({})
setStatus('default')
}, 3500)
}
} else {
setStatus('error')