From c7af881f2dfb6da160b0d15627ac95966b3d2f2c Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Tue, 3 Jun 2025 18:20:04 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Handle=20enterprise=20license=20wit?= =?UTF-8?q?h=20unlimited=20seats=20(#1753)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../[locale]/control-panel/license/page.tsx | 20 ++++++++++--------- .../components/license-limit-warning.tsx | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/apps/web/src/app/[locale]/control-panel/license/page.tsx b/apps/web/src/app/[locale]/control-panel/license/page.tsx index 3a018786f..c32480216 100644 --- a/apps/web/src/app/[locale]/control-panel/license/page.tsx +++ b/apps/web/src/app/[locale]/control-panel/license/page.tsx @@ -77,15 +77,17 @@ export default async function LicensePage() { {license.type} - - ( - - ) - + {license.seats ? ( + + ( + + ) + + ) : null} diff --git a/apps/web/src/features/licensing/components/license-limit-warning.tsx b/apps/web/src/features/licensing/components/license-limit-warning.tsx index 9898bd906..0f312b644 100644 --- a/apps/web/src/features/licensing/components/license-limit-warning.tsx +++ b/apps/web/src/features/licensing/components/license-limit-warning.tsx @@ -16,7 +16,7 @@ export async function LicenseLimitWarning() { const userLimit = license?.seats ?? 1; - if (!userLimit || userCount <= userLimit) { + if (license?.type === "ENTERPRISE" || userCount <= userLimit) { return null; }