From 9cf8ed1d008d4d8652f278f30d7285e4e768d837 Mon Sep 17 00:00:00 2001 From: David Nguyen Date: Thu, 19 Mar 2026 14:21:28 +1100 Subject: [PATCH] fix: resolve envelope editor settings ccer logic (#2628) ## Description Fix issue where having a CCer for a draft document would prevent changing the date/timezone and some other settings. --- .../envelope-editor/envelope-editor-settings-dialog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/remix/app/components/general/envelope-editor/envelope-editor-settings-dialog.tsx b/apps/remix/app/components/general/envelope-editor/envelope-editor-settings-dialog.tsx index 671cc83cf..3058f2892 100644 --- a/apps/remix/app/components/general/envelope-editor/envelope-editor-settings-dialog.tsx +++ b/apps/remix/app/components/general/envelope-editor/envelope-editor-settings-dialog.tsx @@ -8,6 +8,7 @@ import { DocumentDistributionMethod, DocumentVisibility, EnvelopeType, + RecipientRole, SendStatus, TemplateType, } from '@prisma/client'; @@ -234,7 +235,10 @@ export const EnvelopeEditorSettingsDialog = ({ const envelopeHasBeenSent = envelope.type === EnvelopeType.DOCUMENT && - envelope.recipients.some((recipient) => recipient.sendStatus === SendStatus.SENT); + envelope.recipients.some( + (recipient) => + recipient.role !== RecipientRole.CC && recipient.sendStatus === SendStatus.SENT, + ); const emailSettings = form.watch('meta.emailSettings');