fix: incorrect condition implementation for setting template as public based on isEnableSubscription

This commit is contained in:
RaktimaNXG
2024-05-30 18:08:54 +05:30
parent c00406e401
commit eb3bb77692
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -449,7 +449,7 @@ function UserProfile() {
)}
</span>
</li>
{!isEnableSubscription && (
{isEnableSubscription && (
<li className="flex justify-between items-center border-t-[1px] border-gray-300 py-2 break-all">
<span className="font-semibold">
Public profile :{" "}
@@ -891,7 +891,7 @@ const ReportTable = (props) => {
{props.actions?.length > 0 && (
<th className="px-4 py-2 font-thin">Action</th>
)}
{props.ReportName === "Templates" && !isEnableSubscription && (
{props.ReportName === "Templates" && isEnableSubscription && (
<th className="px-4 py-2 font-thin">Public</th>
)}
</tr>
@@ -1333,7 +1333,7 @@ const ReportTable = (props) => {
</ModalUi>
)}
</td>
{!isEnableSubscription && (
{isEnableSubscription && (
<td className=" pl-[20px] py-2 ">
{props.ReportName === "Templates" && (
<div className=" flex flex-row-">