From bd11ece8730cb7bb90e84eb1bbdc91ea37691648 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Fri, 4 Apr 2025 11:09:43 +0200 Subject: [PATCH] fix: consumption warning is either/or not and --- .../network/NetworkTrafficUsage/NetworkTrafficUsage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx b/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx index 84881a267c..3449911c7e 100644 --- a/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx +++ b/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx @@ -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 (