Skip to content

Commit eb3bb77

Browse files
fix: incorrect condition implementation for setting template as public based on isEnableSubscription
1 parent c00406e commit eb3bb77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/OpenSign/src/pages/UserProfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function UserProfile() {
449449
)}
450450
</span>
451451
</li>
452-
{!isEnableSubscription && (
452+
{isEnableSubscription && (
453453
<li className="flex justify-between items-center border-t-[1px] border-gray-300 py-2 break-all">
454454
<span className="font-semibold">
455455
Public profile :{" "}

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ const ReportTable = (props) => {
891891
{props.actions?.length > 0 && (
892892
<th className="px-4 py-2 font-thin">Action</th>
893893
)}
894-
{props.ReportName === "Templates" && !isEnableSubscription && (
894+
{props.ReportName === "Templates" && isEnableSubscription && (
895895
<th className="px-4 py-2 font-thin">Public</th>
896896
)}
897897
</tr>
@@ -1333,7 +1333,7 @@ const ReportTable = (props) => {
13331333
</ModalUi>
13341334
)}
13351335
</td>
1336-
{!isEnableSubscription && (
1336+
{isEnableSubscription && (
13371337
<td className=" pl-[20px] py-2 ">
13381338
{props.ReportName === "Templates" && (
13391339
<div className=" flex flex-row-">

0 commit comments

Comments
 (0)