From e2f86f1a3653b319e4d35391d76641e86282c89f Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Fri, 3 Mar 2023 20:48:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20allow=20send=20only=20with=20rec?= =?UTF-8?q?ipients=20with=20set=20mails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/pages/documents/[id]/recipients.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web/pages/documents/[id]/recipients.tsx b/apps/web/pages/documents/[id]/recipients.tsx index 549b4407e..568edd4f0 100644 --- a/apps/web/pages/documents/[id]/recipients.tsx +++ b/apps/web/pages/documents/[id]/recipients.tsx @@ -94,7 +94,9 @@ const RecipientsPage: NextPageWithLayout = (props: any) => { }} disabled={ (signers.length || 0) === 0 || - !signers.some((r: any) => r.sendStatus === "NOT_SENT") || + !signers.some( + (r: any) => r.email && r.sendStatus === "NOT_SENT" + ) || loading } > @@ -355,8 +357,9 @@ const RecipientsPage: NextPageWithLayout = (props: any) => {

{`"${props.document.title}" will be sent to ${ - signers.filter((s: any) => s.sendStatus != "SENT") - .length + signers.filter( + (s: any) => s.email && s.sendStatus != "SENT" + ).length } recipients.`}