fix: add optional chain operator to fix enterprise check from throwing error

This commit is contained in:
Scott Wilson
2025-10-24 19:16:08 -07:00
parent 6c04dd1937
commit 793a313f1d
@@ -1281,7 +1281,7 @@ export const ActionBar = ({
subscription.slug === null subscription.slug === null
? "You can perform this action under an Enterprise license" ? "You can perform this action under an Enterprise license"
: `You can perform this action if you switch to Infisical's ${ : `You can perform this action if you switch to Infisical's ${
popUp.upgradePlan.data.isEnterpriseFeature ? "Enterprise" : "Pro" popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro"
} plan` } plan`
} }
/> />