Skip to content

Commit

Permalink
use the resolved data in dubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
scamden committed Jun 16, 2023
1 parent fe3102b commit f557eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createSchemaForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ function useSubmitter<SchemaType extends RTFFormSchemaType>({
async (e) => {
const errorKeys = Object.keys(e.errors);
if (!errorKeys.length) {
await onSubmit(data);
await onSubmit(e.values);
return;
}
for (const key of errorKeys) {
Expand Down

0 comments on commit f557eb6

Please sign in to comment.