From 2ba4c0a816f32e83ac4014e3fcf1af9ded1ff6c3 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Tue, 7 Feb 2023 13:22:29 +0100 Subject: [PATCH] ux --- apps/web/pages/documents/[id]/recipients.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/documents/[id]/recipients.tsx b/apps/web/pages/documents/[id]/recipients.tsx index b584bebd6..c3f0ef1f3 100644 --- a/apps/web/pages/documents/[id]/recipients.tsx +++ b/apps/web/pages/documents/[id]/recipients.tsx @@ -66,7 +66,12 @@ const RecipientsPage: NextPageWithLayout = (props: any) => { setLoading(false); }); }} - disabled={(props?.document?.Recipient?.length || 0) === 0} + disabled={ + (props?.document?.Recipient?.length || 0) === 0 || + !props?.document?.Recipient?.some( + (r: any) => r.sendStatus === "NOT_SENT" + ) + } > Send