Browse Source

gracefully handle no usage set'

Justin Rhee 3 years ago
parent
commit
c96d0b5cae
1 changed files with 1 additions and 1 deletions
  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") {