From f557eb6ec5868c4a6ab5946960943f20d199fbb5 Mon Sep 17 00:00:00 2001 From: Sterling Camden Date: Fri, 16 Jun 2023 09:57:06 -0700 Subject: [PATCH] use the resolved data in dubmit --- src/createSchemaForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createSchemaForm.tsx b/src/createSchemaForm.tsx index 3c6a9e2..a0b51da 100644 --- a/src/createSchemaForm.tsx +++ b/src/createSchemaForm.tsx @@ -610,7 +610,7 @@ function useSubmitter({ async (e) => { const errorKeys = Object.keys(e.errors); if (!errorKeys.length) { - await onSubmit(data); + await onSubmit(e.values); return; } for (const key of errorKeys) {