Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions apps/OpenSign/src/constant/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ export const openInNewTab = (url) => {
window.open(url, "_blank", "noopener,noreferrer");
};

export async function fetchSubscription(extUserId, contactObjId) {
export async function fetchSubscription(
extUserId,
contactObjId,
isGuestSign = false
) {
try {
const extClass = localStorage.getItem("Extand_Class");
const isGuestSign = localStorage.getItem("isGuestSigner");
let extUser;
if (extClass) {
const jsonSender = JSON.parse(extClass);
Expand Down Expand Up @@ -1264,8 +1267,8 @@ export const multiSignEmbed = async (
position.type === radioButtonWidget
? 10
: position.type === "checkbox"
? 10
: newUpdateHeight;
? 10
: newUpdateHeight;
const newHeight = ind ? (ind > 0 ? widgetHeight : 0) : widgetHeight;

if (signyourself) {
Expand Down
10 changes: 5 additions & 5 deletions apps/OpenSign/src/pages/PdfRequestFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ function PdfRequestFiles() {
}, [divRef.current]);

async function checkIsSubscribed(extUserId, contactId) {
const isGuestSign = localStorage.getItem("isGuestSigner");
const res = await fetchSubscription(extUserId, contactId);
const isGuestSign = location.pathname.includes("/load/") || false;
const res = await fetchSubscription(extUserId, contactId, isGuestSign);
const plan = res.plan;
const billingDate = res?.billingDate;
const status = res?.status;
Expand Down Expand Up @@ -1139,9 +1139,9 @@ function PdfRequestFiles() {
isDecline.currnt === "Sure"
? "Are you sure want to decline this document ?"
: isDecline.currnt === "YouDeclined"
? "You have declined this document!"
: isDecline.currnt === "another" &&
"You can not sign this document as it has been declined/revoked."
? "You have declined this document!"
: isDecline.currnt === "another" &&
"You can not sign this document as it has been declined/revoked."
}
footerMessage={isDecline.currnt === "Sure"}
declineDoc={declineDoc}
Expand Down