Skip to content

Commit

Permalink
Merge pull request #1492 from OpenSignLabs/fix_uncaught
Browse files Browse the repository at this point in the history
  • Loading branch information
nxglabs authored Nov 28, 2024
2 parents 37b41fc + 618b4fa commit 0275762
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/OpenSign/src/pages/PdfRequestFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ function PdfRequestFiles(props) {
const obj = documentData?.[0];
setSendInOrder(obj?.SendinOrder || false);
if (
obj &&
obj?.Signers?.length > 0 &&
obj?.Placeholders?.length > 0
obj?.Signers?.length &&
obj?.Placeholders?.length &&
currUserId !== "undefined"
) {
const params = {
event: "viewed",
Expand Down
6 changes: 5 additions & 1 deletion apps/OpenSign/src/pages/PlaceHolderSign.js
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,11 @@ function PlaceHolderSign() {
}
};
const handleRecipientSign = () => {
navigate(`/recipientSignPdf/${documentId}/${currentId}`);
if (currentId) {
navigate(`/recipientSignPdf/${documentId}/${currentId}`);
} else {
navigate(`/recipientSignPdf/${documentId}`);
}
};
const handleLinkUser = (id) => {
setIsAddUser({ [id]: true });
Expand Down

0 comments on commit 0275762

Please sign in to comment.