From 77d3bd019e4751474b36416f1e2d8c4721524b2b Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 20 Aug 2023 00:57:01 +0800 Subject: [PATCH] fix the problem that the thousands separator is missing --- src/lib/currency.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/currency.js b/src/lib/currency.js index fe375188..74a94b2c 100644 --- a/src/lib/currency.js +++ b/src/lib/currency.js @@ -28,6 +28,8 @@ export function numericCurrencyToString(num, enableThousandsSeparator, trimTailZ } } + integer = appendThousandsSeparator(integer, enableThousandsSeparator); + if (decimals !== '') { str = `${integer}.${decimals}`; } else {