1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-18 00:19:49 +01:00

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.
This commit is contained in:
Thomas Heartman 2025-03-07 08:32:15 +01:00 committed by GitHub
parent 36a8d6013b
commit 7db692e976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,7 @@ const NetworkTrafficUsage: FC = () => {
const showOverageCalculations =
chartDataSelection.grouping === 'daily' &&
chartDataSelection.month === currentMonth &&
includedTraffic > 0 &&
usageTotal - includedTraffic > 0 &&
estimateTrafficDataCost;