Skip to content

Commit b4cfe7f

Browse files
committed
Show the free usage panel only for v3 projects
1 parent 5143562 commit b4cfe7f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ export function SideMenu({ user, project, organization, organizations }: SideMen
106106
const currentPlan = useCurrentPlan();
107107
const { isManagedCloud } = useFeatures();
108108

109-
const hasV2Projects = organizations.some((org) =>
110-
org.projects.some((proj) => proj.version === "V2")
111-
);
109+
const isV3Project = project.version === "V3";
112110
const isFreeV3User = currentPlan?.v3Subscription?.isPaying === false;
113111

114112
useEffect(() => {
@@ -339,7 +337,7 @@ export function SideMenu({ user, project, organization, organizations }: SideMen
339337
</Button>
340338
}
341339
/>
342-
{hasV2Projects && isFreeV3User && (
340+
{isV3Project && isFreeV3User && (
343341
<FreePlanUsage
344342
to={v3BillingPath(organization)}
345343
percentage={currentPlan.v3Usage.usagePercentage}

0 commit comments

Comments
 (0)