jjarrett21 hace 2 años
padre
commit
76796d8605
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  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>
       )}