fix money formatting for amount under 1000

This commit is contained in:
Olivier Gagnon 2021-05-03 01:44:02 -04:00
parent 8c2e661e08
commit 9976ed136c

@ -53,6 +53,9 @@ class NumeralFormatter {
}
formatMoney(n: number): string {
if(n < 1000) {
return this.format(n, "$0.00");
}
return this.format(n, "$0.000a");
}