diff --git a/apps/mail/components/create/create-email.tsx b/apps/mail/components/create/create-email.tsx index f5d91941b..25bcbc4de 100644 --- a/apps/mail/components/create/create-email.tsx +++ b/apps/mail/components/create/create-email.tsx @@ -61,14 +61,9 @@ export function CreateEmail({ message: data.message, attachments: data.attachments, fromEmail: fromEmail, + draftId: draftId || undefined, }); - if (draftId) { - await sendEmail({ ...data, draftId }); - } else { - await sendEmail(data); - } - // Track different email sending scenarios if (data.cc && data.bcc) { console.log(posthog.capture('Create Email Sent with CC and BCC')); @@ -96,11 +91,11 @@ export function CreateEmail({ - + );