From 51f2ad9b6dc23bd4a73ef1953fedc654b37e26f0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 17 Mar 2021 18:21:43 +0100 Subject: use static helpers for amounts --- packages/taler-wallet-core/src/util/helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/util') diff --git a/packages/taler-wallet-core/src/util/helpers.ts b/packages/taler-wallet-core/src/util/helpers.ts index 36ecc83fe..87fa2e93f 100644 --- a/packages/taler-wallet-core/src/util/helpers.ts +++ b/packages/taler-wallet-core/src/util/helpers.ts @@ -21,7 +21,7 @@ /** * Imports. */ -import { AmountJson, Amounts } from "@gnu-taler/taler-util"; +import { amountFractionalBase, AmountJson, Amounts } from "@gnu-taler/taler-util"; import { URL } from "./url"; /** @@ -30,7 +30,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 / amountFractionalBase; return `${x} ${amount.currency}`; } -- cgit v1.2.3