Skip to content

Commit

Permalink
revert console error log
Browse files Browse the repository at this point in the history
  • Loading branch information
pwli0755 committed Aug 31, 2024
1 parent 9ba244a commit 6b4f408
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/shadcn-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ function App() {
const [form, fields] = useForm({
id: 'signup',
onValidate({ formData }) {
const result = parseWithZod(formData, { schema: UserSubscriptionSchema });
if (result.status==='error') {
console.error(result);
}
return result
return parseWithZod(formData, { schema: UserSubscriptionSchema });
},
onSubmit(e) {
e.preventDefault();
Expand Down

0 comments on commit 6b4f408

Please sign in to comment.