瀏覽代碼

order test

jjarrett21 2 年之前
父節點
當前提交
76796d8605
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      ui/src/cloudCostReports.js

+ 5 - 5
ui/src/cloudCostReports.js

@@ -234,15 +234,15 @@ const CloudCostReports = () => {
           <RefreshIcon />
         </IconButton>
       </Header>
-
-      {!loading && errors.length > 0 && hasCloudCostEnabled && (
+      {!loading && !errors.length && !hasCloudCostEnabled && (
         <div style={{ marginBottom: 20 }}>
-          <Warnings warnings={errors} />
+          <Warnings warnings={enabledWarnings} />
         </div>
       )}
-      {!loading && !errors && !hasCloudCostEnabled && (
+
+      {!loading && errors.length > 0 && hasCloudCostEnabled && (
         <div style={{ marginBottom: 20 }}>
-          <Warnings warnings={enabledWarnings} />
+          <Warnings warnings={errors} />
         </div>
       )}