1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-09 01:17:06 +02:00

fix: consumption warning is either/or not and

This commit is contained in:
Christopher Kolstad 2025-04-04 11:09:43 +02:00
parent 32ae7bc7d1
commit bd11ece873
No known key found for this signature in database

View File

@ -69,7 +69,10 @@ const NetworkTrafficUsage: FC = () => {
chartDataSelection.grouping === 'daily' &&
chartDataSelection.month === currentMonth;
const showConsumptionBillingWarning =
isCurrentMonth && totalTraffic > 0 && overageCost > 0;
(chartDataSelection.grouping === 'monthly' ||
chartDataSelection.month === currentMonth) &&
totalTraffic > 0 &&
overageCost > 0;
return (
<ConditionallyRender