Skip to content

The Open Source DocuSign Alternative.

fix: resolve envelope editor settings ccer logic (#2628)

David Nguyen9cf8ed1d008d
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');