mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-02 13:38:44 +02:00
fix: handle condition to show complete message
This commit is contained in:
@@ -417,10 +417,13 @@ function PdfRequestFiles() {
|
||||
}
|
||||
setPdfDetails(documentData);
|
||||
// Check if the current signer is the last signer and handle the complete message.
|
||||
|
||||
if (isNextUser) {
|
||||
const getSignedAuditTrail = documentData[0].AuditTrail.filter(
|
||||
(data) => data.Activity === "Signed"
|
||||
);
|
||||
const isLastSigner =
|
||||
documentData?.[0]?.AuditTrail?.length ===
|
||||
documentData?.[0]?.Signers?.length;
|
||||
getSignedAuditTrail?.length === documentData?.[0]?.Signers?.length;
|
||||
if (!isLastSigner) {
|
||||
setIsCompleted({
|
||||
isModal: true,
|
||||
|
||||
Reference in New Issue
Block a user