From ee88eaee4b94160fbd3534d145059e084e2f2329 Mon Sep 17 00:00:00 2001
From: Alexander Lesnenko <alxnddr@users.noreply.github.com>
Date: Mon, 31 Jan 2022 20:57:51 +0000
Subject: [PATCH] fix license infinite loop (#20075)

---
 .../LicenseAndBillingSettings/LicenseAndBillingSettings.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/enterprise/frontend/src/metabase-enterprise/license/components/LicenseAndBillingSettings/LicenseAndBillingSettings.tsx b/enterprise/frontend/src/metabase-enterprise/license/components/LicenseAndBillingSettings/LicenseAndBillingSettings.tsx
index 06e98630a7b..707bc3ceaac 100644
--- a/enterprise/frontend/src/metabase-enterprise/license/components/LicenseAndBillingSettings/LicenseAndBillingSettings.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/license/components/LicenseAndBillingSettings/LicenseAndBillingSettings.tsx
@@ -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">
-- 
GitLab