mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
fix: ai feature check (#4597)
Co-authored-by: Anshuman Pandey <54475686+pandeymangg@users.noreply.github.com>
This commit is contained in:
@@ -376,12 +376,7 @@ export const getIsOrganizationAIReady = async (billingPlan: TOrganizationBilling
|
||||
const license = await getEnterpriseLicense();
|
||||
|
||||
if (IS_FORMBRICKS_CLOUD) {
|
||||
return Boolean(
|
||||
license.features?.ai &&
|
||||
(billingPlan === PROJECT_FEATURE_KEYS.STARTUP ||
|
||||
billingPlan === PROJECT_FEATURE_KEYS.SCALE ||
|
||||
billingPlan === PROJECT_FEATURE_KEYS.ENTERPRISE)
|
||||
);
|
||||
return Boolean(license.features?.ai && billingPlan !== PROJECT_FEATURE_KEYS.FREE);
|
||||
}
|
||||
|
||||
return Boolean(license.features?.ai);
|
||||
|
||||
Reference in New Issue
Block a user