diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-09 12:45:49 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-09 12:45:49 +0530 |
commit | 71abddec5e3dc9cc407f468feaaa3284ef528aba (patch) | |
tree | fbd4c329d8f8b866fdd6549430f0d1bcfcd5ebd5 /packages/taler-wallet-core/src/util | |
parent | 0566406abb74008a5d7796fc047ca98a6dd590b0 (diff) | |
download | wallet-core-71abddec5e3dc9cc407f468feaaa3284ef528aba.tar.xz |
make withdrawal, pay and refunds work in the WebExtension
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/amounts.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/util/amounts.ts b/packages/taler-wallet-core/src/util/amounts.ts index 533005b18..e6bee2d1d 100644 --- a/packages/taler-wallet-core/src/util/amounts.ts +++ b/packages/taler-wallet-core/src/util/amounts.ts @@ -257,7 +257,8 @@ export function isNonZero(a: AmountJson): boolean { return a.value > 0 || a.fraction > 0; } -export function isZero(a: AmountJson): boolean { +export function isZero(a: AmountLike): boolean { + a = jsonifyAmount(a); return a.value === 0 && a.fraction === 0; } |