diff --git a/apps/mail/components/create/create-email.tsx b/apps/mail/components/create/create-email.tsx index 26bade119f..d9c4b542e9 100644 --- a/apps/mail/components/create/create-email.tsx +++ b/apps/mail/components/create/create-email.tsx @@ -155,8 +155,8 @@ export function CreateEmail({ const handleDialogClose = (open: boolean) => { setIsComposeOpen(open ? 'true' : null); - if(!open){ - setDraftId(null) + if (!open) { + setDraftId(null); } }; @@ -185,7 +185,6 @@ export function CreateEmail({ 0); const [showBcc, setShowBcc] = useState(initialBcc.length > 0); const [isLoading, setIsLoading] = useState(false); @@ -312,18 +308,18 @@ export function EmailComposer({ const handleSend = async () => { try { if (isLoading || isSavingDraft) return; - + const values = getValues(); - + // Validate recipient field if (!values.to || values.to.length === 0) { toast.error('Recipient is required'); return; } - + setIsLoading(true); setAiGeneratedMessage(null); - + await onSendEmail({ to: values.to, cc: showCc ? values.cc : undefined, @@ -999,7 +995,7 @@ export function EmailComposer({ {/* From */} - {aliases.length > 0 && !replyingTo && ( + {aliases.length > 0 && (

From: