Преглед изворни кода

gracefully handle no usage set'

Justin Rhee пре 3 година
родитељ
комит
c96d0b5cae
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      dashboard/src/components/ProvisionerFlow.tsx

+ 1 - 1
dashboard/src/components/ProvisionerFlow.tsx

@@ -23,7 +23,7 @@ const ProvisionerFlow: React.FC<Props> = ({
     if (!hasBillingEnabled) {
       return false;
     }
-    return usage.current.clusters >= usage.limit.clusters;
+    return usage?.current.clusters >= usage?.limit.clusters;
   }, [usage]);
 
   if (currentStep === "cloud") {