aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-01-25 15:12:28 -0300
committerSebastian <sebasjm@gmail.com>2022-01-25 17:45:33 -0300
commit8b07411c58270de2982b9b4e2c24a83bec9db46d (patch)
tree980cc307abd25e3abc58f15c05776a6448a8a204 /packages/taler-util
parent0ccd5b955b22f4c595c32a6b80d1726938b949ae (diff)
inlt is not part of stringifyValue
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/amounts.ts7
1 files 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;
}
}