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:
parent
36a8d6013b
commit
7db692e976
@ -57,6 +57,7 @@ const NetworkTrafficUsage: FC = () => {
|
||||
|
||||
const showOverageCalculations =
|
||||
chartDataSelection.grouping === 'daily' &&
|
||||
chartDataSelection.month === currentMonth &&
|
||||
includedTraffic > 0 &&
|
||||
usageTotal - includedTraffic > 0 &&
|
||||
estimateTrafficDataCost;
|
||||
|
Loading…
Reference in New Issue
Block a user