From b21b3b1b0cc38be2a48dc82cb5f23412beabe6e2 Mon Sep 17 00:00:00 2001 From: motatoes Date: Thu, 21 Nov 2024 07:47:55 +0000 Subject: [PATCH] skip trial configurable --- .../@sidebar/OrganizationSidebar.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx index 953a573a..55f516cc 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx @@ -26,6 +26,10 @@ async function OrganizationSubscriptionSidebarCard({ const isOrganizationAdmin = userRole === 'admin' || userRole === 'owner' + if (process.env.NEXT_PUBLIC_HIDE_FREE_TRIAL_DIALOG === "true") { + return null + } + switch (normalizedSubscription.type) { case 'bypassed_enterprise_organization': return null;