jjarrett21 2 лет назад
Родитель
Сommit
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>
       )}