Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

✨ Handle enterprise license with unlimited seats (#1753)

Luke Vellac7af881f2dfb
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() {
</DescriptionListTitle>
<DescriptionListValue>
<span className="text-primary capitalize">{license.type}</span>
- <span className="ml-2 text-muted-foreground">
- (
- <Trans
- i18nKey="seatCount"
- defaults="{count, plural, one {# seat} other {# seats}}"
- values={{ count: license.seats }}
- />
- )
- </span>
+ {license.seats ? (
+ <span className="ml-2 text-muted-foreground">
+ (
+ <Trans
+ i18nKey="seatCount"
+ defaults="{count, plural, one {# seat} other {# seats}}"
+ values={{ count: license.seats }}
+ />
+ )
+ </span>
+ ) : null}
</DescriptionListValue>
<DescriptionListTitle>
<Trans i18nKey="licenseKey" defaults="License Key" />
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;
}