fix: instance signature flow issue after send placeholder

This commit is contained in:
RaktimaNXG
2024-01-05 17:37:57 +05:30
parent f9e6f49ede
commit 7bd8d64649
@@ -722,7 +722,7 @@ function PlaceHolderSign() {
});
const currentUser = signersdata.find((x) => x.Email === currentId);
setCurrentId(currentUser?.objectId);
// console.log("signers ", signers);
try {
const data = {
Placeholders: signerPos,
@@ -898,7 +898,11 @@ function PlaceHolderSign() {
}
return { ...x };
});
// console.log("updateSigner ", updateSigner);
// console.log("updateSigner ", updateSigner);
if (updateSigner && updateSigner.length > 0) {
setCurrentId(updateSigner[0].Email);
}
setSignersData(updateSigner);
const index = signersdata.findIndex((x) => x.Id === uniqueId);
setIsSelectId(index);