Skip to content

Commit a44cb71

Browse files
authored
Merge pull request #643 from OpenSignLabs/staging
v1.5.6
2 parents d422f46 + 1c6b056 commit a44cb71

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

apps/OpenSign/src/constant/Utils.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ export const openInNewTab = (url) => {
1313
window.open(url, "_blank", "noopener,noreferrer");
1414
};
1515

16-
export async function fetchSubscription(extUserId, contactObjId) {
16+
export async function fetchSubscription(
17+
extUserId,
18+
contactObjId,
19+
isGuestSign = false
20+
) {
1721
try {
1822
const extClass = localStorage.getItem("Extand_Class");
19-
const isGuestSign = localStorage.getItem("isGuestSigner");
2023
let extUser;
2124
if (extClass) {
2225
const jsonSender = JSON.parse(extClass);
@@ -1264,8 +1267,8 @@ export const multiSignEmbed = async (
12641267
position.type === radioButtonWidget
12651268
? 10
12661269
: position.type === "checkbox"
1267-
? 10
1268-
: newUpdateHeight;
1270+
? 10
1271+
: newUpdateHeight;
12691272
const newHeight = ind ? (ind > 0 ? widgetHeight : 0) : widgetHeight;
12701273

12711274
if (signyourself) {

apps/OpenSign/src/pages/PdfRequestFiles.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ function PdfRequestFiles() {
140140
}, [divRef.current]);
141141

142142
async function checkIsSubscribed(extUserId, contactId) {
143-
const isGuestSign = localStorage.getItem("isGuestSigner");
144-
const res = await fetchSubscription(extUserId, contactId);
143+
const isGuestSign = location.pathname.includes("/load/") || false;
144+
const res = await fetchSubscription(extUserId, contactId, isGuestSign);
145145
const plan = res.plan;
146146
const billingDate = res?.billingDate;
147147
const status = res?.status;
@@ -1139,9 +1139,9 @@ function PdfRequestFiles() {
11391139
isDecline.currnt === "Sure"
11401140
? "Are you sure want to decline this document ?"
11411141
: isDecline.currnt === "YouDeclined"
1142-
? "You have declined this document!"
1143-
: isDecline.currnt === "another" &&
1144-
"You can not sign this document as it has been declined/revoked."
1142+
? "You have declined this document!"
1143+
: isDecline.currnt === "another" &&
1144+
"You can not sign this document as it has been declined/revoked."
11451145
}
11461146
footerMessage={isDecline.currnt === "Sure"}
11471147
declineDoc={declineDoc}

0 commit comments

Comments
 (0)