fix: the quick-send flow in-progress report shows the finish button even though the current user isn't a signer

This commit is contained in:
RaktimaNXG
2024-07-19 16:31:43 +05:30
parent a1f4e9ea74
commit f6f5b08d43
3 changed files with 9 additions and 7 deletions
@@ -122,7 +122,7 @@ function DriveBody(props) {
navigate(`/placeHolderSign/${data.objectId}`);
}
//Inprogress document
else if (isPlaceholder?.length > 0 && signerExist?.length > 0) {
else if (isPlaceholder?.length > 0 && signedUrl) {
navigate(`/recipientSignPdf/${data.objectId}`);
} //placeholder draft document
else if (
@@ -67,7 +67,7 @@ function DraftDocument() {
navigate(`/placeHolderSign/${data.objectId}`);
}
//Inprogress document
else if (isPlaceholder?.length > 0 && signerExist?.length > 0) {
else if (isPlaceholder?.length > 0 && signedUrl) {
navigate(`/recipientSignPdf/${data.objectId}`);
} //placeholder draft document
else if (
+7 -5
View File
@@ -419,11 +419,13 @@ function PdfRequestFiles(props) {
"You have successfully signed the document. You can download or print a copy of the partially signed document. A copy of the digitally signed document will be sent to the owner over email once it is signed by all signers."
});
} else {
const checkCurrentUser = documentData[0].Placeholders.find(
(data) => data.signerObjId === currUserId
);
if (checkCurrentUser) {
setCurrentSigner(true);
if (currUserId) {
const checkCurrentUser = documentData[0].Placeholders.find(
(data) => data?.signerObjId === currUserId
);
if (checkCurrentUser) {
setCurrentSigner(true);
}
}
}
const audittrailData =