diff options
Diffstat (limited to 'packages/taler-wallet-core/src')
| -rw-r--r-- | packages/taler-wallet-core/src/util/helpers.ts | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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}`;  } | 
