File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,13 @@ export const openInNewTab = (url) => {
13
13
window . open ( url , "_blank" , "noopener,noreferrer" ) ;
14
14
} ;
15
15
16
- export async function fetchSubscription ( extUserId , contactObjId ) {
16
+ export async function fetchSubscription (
17
+ extUserId ,
18
+ contactObjId ,
19
+ isGuestSign = false
20
+ ) {
17
21
try {
18
22
const extClass = localStorage . getItem ( "Extand_Class" ) ;
19
- const isGuestSign = localStorage . getItem ( "isGuestSigner" ) ;
20
23
let extUser ;
21
24
if ( extClass ) {
22
25
const jsonSender = JSON . parse ( extClass ) ;
@@ -1264,8 +1267,8 @@ export const multiSignEmbed = async (
1264
1267
position . type === radioButtonWidget
1265
1268
? 10
1266
1269
: position . type === "checkbox"
1267
- ? 10
1268
- : newUpdateHeight ;
1270
+ ? 10
1271
+ : newUpdateHeight ;
1269
1272
const newHeight = ind ? ( ind > 0 ? widgetHeight : 0 ) : widgetHeight ;
1270
1273
1271
1274
if ( signyourself ) {
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ function PdfRequestFiles() {
140
140
} , [ divRef . current ] ) ;
141
141
142
142
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 ) ;
145
145
const plan = res . plan ;
146
146
const billingDate = res ?. billingDate ;
147
147
const status = res ?. status ;
@@ -1139,9 +1139,9 @@ function PdfRequestFiles() {
1139
1139
isDecline . currnt === "Sure"
1140
1140
? "Are you sure want to decline this document ?"
1141
1141
: 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."
1145
1145
}
1146
1146
footerMessage = { isDecline . currnt === "Sure" }
1147
1147
declineDoc = { declineDoc }
You can’t perform that action at this time.
0 commit comments