Skip to content

Commit

Permalink
Merge pull request #620 from OpenSignLabs/fix_issue
Browse files Browse the repository at this point in the history
fix: change the message to show for user who is not the last signer after signs the document
  • Loading branch information
prafull-opensignlabs authored Apr 18, 2024
2 parents 9890d56 + 5cecf33 commit ebeeedc
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions apps/OpenSign/src/pages/PdfRequestFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,15 +593,21 @@ function PdfRequestFiles() {
setSignedSigners([]);
setUnSignedSigners([]);
getDocumentDetails();
const index = pdfDetails?.[0].Signers.findIndex(
(x) => x.Email === jsonSender.email
);
const newIndex = index + 1;
const user = pdfDetails?.[0].Signers[newIndex];
if (user) {
setIsCompleted({
isModal: true,
message:
"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."
});
}
if (sendInOrder) {
const index = pdfDetails?.[0].Signers.findIndex(
(x) => x.Email === jsonSender.email
);
const requestBody = pdfDetails?.[0]?.RequestBody;
const requestSubject = pdfDetails?.[0]?.RequestSubject;

const newIndex = index + 1;
const user = pdfDetails?.[0].Signers[newIndex];
if (user) {
const expireDate = pdfDetails?.[0].ExpiryDate.iso;
const newDate = new Date(expireDate);
Expand Down Expand Up @@ -1207,7 +1213,11 @@ function PdfRequestFiles() {
}}
>
<div style={{ height: "100%", padding: 20 }}>
<p>This document has been signed by all Signers.</p>
<p>
{" "}
{isCompleted?.message ||
"This document has been signed by all Signers."}
</p>

<div
style={{
Expand Down

0 comments on commit ebeeedc

Please sign in to comment.