From 7db692e976a2a47723831a681102b22f7f087c8f Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 7 Mar 2025 08:32:15 +0100 Subject: [PATCH] fix: Only show accrued traffic charges and estimated overages for the current month (#9440) For past months, customers can refer to their invoices instead. Hiding it when the selection is not the current month avoids weird things such as estimation errors due to to a month not having finished (vs what it actually *was* when it finished), potential changes in traffic package pricing, etc. --- .../admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx b/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx index 89982ec906..428f246ec8 100644 --- a/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx +++ b/frontend/src/component/admin/network/NetworkTrafficUsage/NetworkTrafficUsage.tsx @@ -57,6 +57,7 @@ const NetworkTrafficUsage: FC = () => { const showOverageCalculations = chartDataSelection.grouping === 'daily' && + chartDataSelection.month === currentMonth && includedTraffic > 0 && usageTotal - includedTraffic > 0 && estimateTrafficDataCost;