Browse Source

order test

jjarrett21 2 years ago
parent
commit
76796d8605
1 changed files with 5 additions and 5 deletions
  1. 5 5
      ui/src/cloudCostReports.js

+ 5 - 5
ui/src/cloudCostReports.js

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