aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util/src/helpers.ts')
-rw-r--r--packages/taler-util/src/helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-util/src/helpers.ts b/packages/taler-util/src/helpers.ts
index f5c204310..d3093d1b1 100644
--- a/packages/taler-util/src/helpers.ts
+++ b/packages/taler-util/src/helpers.ts
@@ -31,7 +31,7 @@ import { URL } from "./url";
* settings such as significant digits or currency symbols.
*/
export function amountToPretty(amount: AmountJson): string {
- const x = amount.value + amount.fraction / Amounts.fractionalBase;
+ const x = amount.value + amount.fraction / Amounts.amountFractionalBase;
return `${x} ${amount.currency}`;
}