Skip to content
Snippets Groups Projects
Unverified Commit ee88eaee authored by Alexander Lesnenko's avatar Alexander Lesnenko Committed by GitHub
Browse files

fix license infinite loop (#20075)

parent d0e1ccd8
No related merge requests found
......@@ -89,14 +89,14 @@ const LicenseAndBillingSettings = ({
const isInvalid = !!error || (tokenStatus != null && !tokenStatus.isValid);
const description = getDescription(tokenStatus, !!token);
const isStoreManagedBilling = tokenStatus?.features.includes(
const isStoreManagedBilling = tokenStatus?.features?.includes(
STORE_MANAGED_FEATURE_KEY,
);
const shouldShowLicenseInput = !tokenStatus?.features.includes(
const shouldShowLicenseInput = !tokenStatus?.features?.includes(
HOSTING_FEATURE_KEY,
);
const shouldUpsell = !tokenStatus?.features.includes(NO_UPSELL_FEATURE_HEY);
const shouldUpsell = !tokenStatus?.features?.includes(NO_UPSELL_FEATURE_HEY);
return (
<SettingsLicenseContainer data-testid="license-and-billing-content">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment