fix(projects): render zero Total Budget as "$0" not "$-0" #131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/mapps-145-total-budget-negative-zero"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Projects page summary card formatted the total budget with
format!("${total_value:.0}"). When the summed budget is negative zero (or a tiny negative that rounds to zero), Rust's formatter emits a leading minus, producing "$-0". Normalize any value that rounds to zero to positive zero before formatting so the card reads "$0".#MAPPS-145
The Projects page summary card formatted the total budget with `format!("${total_value:.0}")`. When the summed budget is negative zero (or a tiny negative that rounds to zero), Rust's formatter emits a leading minus, producing "$-0". Normalize any value that rounds to zero to positive zero before formatting so the card reads "$0". #MAPPS-145