From 8b07411c58270de2982b9b4e2c24a83bec9db46d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 25 Jan 2022 15:12:28 -0300 Subject: [PATCH] inlt is not part of stringifyValue --- packages/taler-util/src/amounts.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/taler-util/src/amounts.ts b/packages/taler-util/src/amounts.ts index d389e3ed3..505a68f46 100644 --- a/packages/taler-util/src/amounts.ts +++ b/packages/taler-util/src/amounts.ts @@ -414,7 +414,7 @@ export class Amounts { return x1.currency.toUpperCase() === x2.currency.toUpperCase(); } - static stringifyValue(a: AmountJson, minFractional: number = 0): string { + static stringifyValue(a: AmountJson, minFractional = 0): string { const av = a.value + Math.floor(a.fraction / amountFractionalBase); const af = a.fraction % amountFractionalBase; let s = av.toString(); @@ -431,9 +431,6 @@ export class Amounts { } } - const currencyFormatter = new Intl.NumberFormat("en-US", { - minimumFractionDigits: minFractional, - }); - return currencyFormatter.format(s as any); + return s; } }