fix(#79): Add check for result.data

This commit is contained in:
Josh Creek
2024-11-10 19:33:32 +00:00
parent 58842c6f1e
commit 4137f85190
+1 -1
View File
@@ -10,7 +10,7 @@
const handleSubmit: SubmitFunction = ({}) => {
return async ({ result, update }) => {
if (result.data.success) {
if (result.data && result.data.success) {
submitted = true;
} else {
error = result.error?.message || 'Form submission failed';