Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(license-service): update allowed feature check to use nullish coalescing operator for improved clarity

Victor Hugo dos Santos1eba43d0e86b
diff --git a/backend/src/ee/services/license/license-service.ts b/backend/src/ee/services/license/license-service.ts
index b8506d4144..54338e4be8 100644
--- a/backend/src/ee/services/license/license-service.ts
+++ b/backend/src/ee/services/license/license-service.ts
@@ -603,7 +603,7 @@ export const licenseServiceFactory = ({
const mappedRows = Object.values(BillingPlanRows).map(({ name, field }) => ({
name,
- allowed: onPremFeatures[field as keyof TFeatureSet] || false,
+ allowed: onPremFeatures[field as keyof TFeatureSet] ?? false,
used: calculateUsageValue(name, field, projectCount, totalIdentities)
}));