From eb3bb77692ce814b55606d679a7a76c848682e5d Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Thu, 30 May 2024 18:08:54 +0530 Subject: [PATCH] fix: incorrect condition implementation for setting template as public based on isEnableSubscription --- apps/OpenSign/src/pages/UserProfile.js | 2 +- apps/OpenSign/src/primitives/GetReportDisplay.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/OpenSign/src/pages/UserProfile.js b/apps/OpenSign/src/pages/UserProfile.js index fe27836eb..cbc0d2429 100644 --- a/apps/OpenSign/src/pages/UserProfile.js +++ b/apps/OpenSign/src/pages/UserProfile.js @@ -449,7 +449,7 @@ function UserProfile() { )} - {!isEnableSubscription && ( + {isEnableSubscription && (
  • Public profile :{" "} diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index a20f72c55..0a04073bf 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -891,7 +891,7 @@ const ReportTable = (props) => { {props.actions?.length > 0 && ( Action )} - {props.ReportName === "Templates" && !isEnableSubscription && ( + {props.ReportName === "Templates" && isEnableSubscription && ( Public )} @@ -1333,7 +1333,7 @@ const ReportTable = (props) => { )} - {!isEnableSubscription && ( + {isEnableSubscription && ( {props.ReportName === "Templates" && (