diff --git a/src/components/forms/notifications/useCreateNotificationFormPresenter.ts b/src/components/forms/notifications/useCreateNotificationFormPresenter.ts index d3176be..58ec7e1 100644 --- a/src/components/forms/notifications/useCreateNotificationFormPresenter.ts +++ b/src/components/forms/notifications/useCreateNotificationFormPresenter.ts @@ -38,7 +38,11 @@ const useCreateNotificationFormPresenter = () => { reset(); }); const onSubmit: SubmitHandler = (data) => { - mutate({ credentials: data }); + const credentials = { + ...data, + schedule_at: data.schedule_at || 0, + }; + mutate({ credentials }); }; const handleCancel = () => { reset();