diff --git a/src/app/form/page.tsx b/src/app/form/page.tsx index b97ab83..f7ea063 100644 --- a/src/app/form/page.tsx +++ b/src/app/form/page.tsx @@ -101,6 +101,8 @@ export default function Form() { const searchParams = useSearchParams(); + console.log(errors); + useEffect(() => { const error = searchParams.get("error"); if (error) { @@ -109,7 +111,6 @@ export default function Form() { }, [searchParams, setError]); const onSubmit = async (data: GeneralInformationFormValues) => { - setError("root", { message: "" }); // eslint-disable-next-line no-console console.log(data); }; @@ -452,7 +453,7 @@ export default function Form() { render={({ field }) => ( field.onChange(e.target.value === "true")} > ))}