Skip to content

Commit 7bd8d64

Browse files
fix: instance signature flow issue after send placeholder
1 parent f9e6f49 commit 7bd8d64

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

microfrontends/SignDocuments/src/Component/placeHolderSign.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ function PlaceHolderSign() {
722722
});
723723
const currentUser = signersdata.find((x) => x.Email === currentId);
724724
setCurrentId(currentUser?.objectId);
725-
// console.log("signers ", signers);
725+
726726
try {
727727
const data = {
728728
Placeholders: signerPos,
@@ -898,7 +898,11 @@ function PlaceHolderSign() {
898898
}
899899
return { ...x };
900900
});
901-
// console.log("updateSigner ", updateSigner);
901+
// console.log("updateSigner ", updateSigner);
902+
if (updateSigner && updateSigner.length > 0) {
903+
setCurrentId(updateSigner[0].Email);
904+
}
905+
902906
setSignersData(updateSigner);
903907
const index = signersdata.findIndex((x) => x.Id === uniqueId);
904908
setIsSelectId(index);

0 commit comments

Comments
 (0)