diff --git a/app/client/modules/notifications/components/notification-forms/email-form.tsx b/app/client/modules/notifications/components/notification-forms/email-form.tsx index 37aef849..43a7daf8 100644 --- a/app/client/modules/notifications/components/notification-forms/email-form.tsx +++ b/app/client/modules/notifications/components/notification-forms/email-form.tsx @@ -93,7 +93,14 @@ export const EmailForm = ({ form }: Props) => { {...field} placeholder="user@example.com, admin@example.com" value={Array.isArray(field.value) ? field.value.join(", ") : ""} - onChange={(e) => field.onChange(e.target.value.split(",").map((email) => email.trim()))} + onChange={(e) => + field.onChange( + e.target.value + .split(",") + .map((email) => email.trim()) + .filter(Boolean), + ) + } /> Comma-separated list of recipient email addresses.