From 74b81a53634717ff3a5415ce9778de0ac2ec57b6 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Wed, 22 May 2024 19:56:44 +0530 Subject: [PATCH] fix: issue in guestlogin of owner subscription has expired --- apps/OpenSign/src/constant/Utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.js index 93cefe04c..c729d8674 100644 --- a/apps/OpenSign/src/constant/Utils.js +++ b/apps/OpenSign/src/constant/Utils.js @@ -21,7 +21,7 @@ export async function fetchSubscription( try { const extClass = localStorage.getItem("Extand_Class"); let extUser; - if (extClass) { + if (extClass && extClass.length > 0) { const jsonSender = JSON.parse(extClass); extUser = jsonSender[0].objectId; } else { @@ -1351,8 +1351,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) {