mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-25 00:52:34 +02:00
fix: user redirect wrong route after send placeholder to signers
This commit is contained in:
@@ -900,7 +900,13 @@ function PlaceHolderSign() {
|
||||
});
|
||||
// console.log("updateSigner ", updateSigner);
|
||||
if (updateSigner && updateSigner.length > 0) {
|
||||
setCurrentId(updateSigner[0].Email);
|
||||
const currEmail = pdfDetails[0].ExtUserPtr.Email;
|
||||
const getCurrentUserDeatils = updateSigner.filter(
|
||||
(x) => x.Email === currEmail
|
||||
);
|
||||
if (getCurrentUserDeatils && getCurrentUserDeatils.length > 0) {
|
||||
setCurrentId(getCurrentUserDeatils[0].Email);
|
||||
}
|
||||
}
|
||||
|
||||
setSignersData(updateSigner);
|
||||
|
||||
Reference in New Issue
Block a user