Remove all spaces between M$ and the associated number

This commit is contained in:
SirSaltyy 2022-05-05 15:29:38 -04:00
parent 2e214cab7a
commit f8be6a3e2d
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const formatter = new Intl.NumberFormat('en-US', {
export function formatMoney(amount: number) {
const newAmount = Math.round(amount) === 0 ? 0 : Math.floor(amount) // handle -0 case
return (
ENV_CONFIG.moneyMoniker + ' ' + formatter.format(newAmount).replace('$', '')
ENV_CONFIG.moneyMoniker + formatter.format(newAmount).replace('$', '')
)
}