소스 검색

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) {
     if (!hasBillingEnabled) {
       return false;
       return false;
     }
     }
-    return usage.current.clusters >= usage.limit.clusters;
+    return usage?.current.clusters >= usage?.limit.clusters;
   }, [usage]);
   }, [usage]);
 
 
   if (currentStep === "cloud") {
   if (currentStep === "cloud") {