mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
fix: traffic estimate should Math.floor price estimate to full million
This commit is contained in:
parent
2cac903068
commit
905092356a
@ -172,7 +172,8 @@ export const calculateOverageCost = (
|
||||
return 0;
|
||||
}
|
||||
|
||||
const overage = dataUsage - includedTraffic;
|
||||
const overage =
|
||||
Math.floor((dataUsage - includedTraffic) / 1_000_000) * 1_000_000;
|
||||
return overage > 0 ? calculateTrafficDataCost(overage) : 0;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user