This commit is contained in:
Timur Ercan
2023-02-07 13:22:29 +01:00
parent f831b1ade1
commit 2ba4c0a816

View File

@ -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
</Button>