diff --git a/components/form/Form.tsx b/components/form/Form.tsx index f2c7c17..6298ad4 100644 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -152,12 +152,11 @@ export const Form: React.FC = ({ local.error = error; local.render(); - console.log(isError); - // if (isError) { - // throw new Error("please check your input field."); - // } else { - // await onSubmit(local); - // } + if (isError) { + throw new Error("please check your input field."); + } else { + await onSubmit(local); + } setTimeout(() => { toast.success(