diff --git a/apps/portal/src/components/questions/CreateListDialog.tsx b/apps/portal/src/components/questions/CreateListDialog.tsx index c02e06bd..bd14174a 100644 --- a/apps/portal/src/components/questions/CreateListDialog.tsx +++ b/apps/portal/src/components/questions/CreateListDialog.tsx @@ -31,37 +31,15 @@ export default function CreateListDialog({ reset(); }; + const handleFormSubmit = handleSubmit(async (data) => { + await onSubmit(data); + reset(); + }); + return ( -
{ - await onSubmit(data); - reset(); - })}> -
- -
-