Browse Source

fix(billing): Remove explicit reserved legend (#70548)

Scott Cooper 10 months ago
parent
commit
ee37da492a
1 changed files with 7 additions and 8 deletions
  1. 7 8
      static/app/views/organizationStats/usageChart/index.tsx

+ 7 - 8
static/app/views/organizationStats/usageChart/index.tsx

@@ -118,7 +118,6 @@ const enum SeriesTypes {
   ACCEPTED = 'Accepted',
   DROPPED = 'Dropped',
   PROJECTED = 'Projected',
-  RESERVED = 'Reserved',
   FILTERED = 'Filtered',
 }
 
@@ -413,13 +412,13 @@ function UsageChartBody({
 
   function chartLegendData() {
     const legend: LegendComponentOption['data'] = [
-      chartData.reserved && chartData.reserved.length > 0
-        ? {
-            name: SeriesTypes.RESERVED,
-          }
-        : {
-            name: SeriesTypes.ACCEPTED,
-          },
+      ...(chartData.reserved && chartData.reserved.length > 0
+        ? []
+        : [
+            {
+              name: SeriesTypes.ACCEPTED,
+            },
+          ]),
     ];
 
     if (chartData.filtered && chartData.filtered.length > 0) {