From 9976ed136c3fe3d5c8647ba58fda69b133538d79 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Mon, 3 May 2021 01:44:02 -0400 Subject: [PATCH] fix money formatting for amount under 1000 --- src/ui/numeralFormat.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/numeralFormat.ts b/src/ui/numeralFormat.ts index 411dbbda5..30d55cf3c 100644 --- a/src/ui/numeralFormat.ts +++ b/src/ui/numeralFormat.ts @@ -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"); }