Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Jan 31, 2023
1 parent 02c8e7e commit 0a2fab3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/src/demos/concepts/building-forms-zod.demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ export const SubmitForm = () => {
const validatedForm = schemaData.safeParse(data);

if (!validatedForm.success) {
console.log(validatedForm.error.issues);
validatedForm.error.issues.map(e => {
console.log(e.path);
return errorList.push(e.path.toString());
});
setError(errorList);
Expand Down

0 comments on commit 0a2fab3

Please sign in to comment.