Skip to content

Commit eeb878b

Browse files
refactor:refactor code
1 parent 7894d69 commit eeb878b

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

apps/OpenSign/src/pages/GuestLogin.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function GuestLogin() {
1919
const [appLogo, setAppLogo] = useState("");
2020
const [documentId, setDocumentId] = useState(id);
2121
const [contactId, setContactId] = useState(contactBookId);
22-
const [sendMail, setSendMail] = useState();
2322
useEffect(() => {
2423
handleServerUrl();
2524

@@ -55,7 +54,6 @@ function GuestLogin() {
5554
setDocumentId(checkSplit[0]);
5655
setEmail(checkSplit[1]);
5756
setContactId(checkSplit[2]);
58-
setSendMail(checkSplit[3]);
5957
}
6058

6159
setIsLoading(false);
@@ -148,13 +146,7 @@ function GuestLogin() {
148146
//save isGuestSigner true in local to handle login flow header in mobile view
149147
localStorage.setItem("isGuestSigner", true);
150148
setLoading(false);
151-
if (sendMail === "false") {
152-
navigate(
153-
`/load/recipientSignPdf/${documentId}/${contactId}?sendmail=${sendMail}`
154-
);
155-
} else {
156-
navigate(`/load/recipientSignPdf/${documentId}/${contactId}`);
157-
}
149+
navigate(`/load/recipientSignPdf/${documentId}/${contactId}`);
158150
}
159151
} catch (error) {
160152
console.log("err ", error);

apps/OpenSign/src/pages/PlaceHolderSign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ function PlaceHolderSign() {
10001000
const hostUrl = window.location.origin;
10011001
//encode this url value `${pdfDetails?.[0].objectId}/${signerMail[i].Email}/${objectId}` to base64 using `btoa` function
10021002
const encodeBase64 = btoa(
1003-
`${pdfDetails?.[0].objectId}/${signerMail[i].Email}/${objectId}/false`
1003+
`${pdfDetails?.[0].objectId}/${signerMail[i].Email}/${objectId}`
10041004
);
10051005
let signPdf = `${hostUrl}/login/${encodeBase64}`;
10061006
shareLinkList.push({ signerEmail: signerMail[i].Email, url: signPdf });

0 commit comments

Comments
 (0)