summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-01-18 12:36:36 -0300
committerSebastian <sebasjm@gmail.com>2023-01-18 12:36:36 -0300
commit44570081f1861681c3f9799c79c6d1c57673195e (patch)
tree90177e6c0c235afad2f672d55dd57ee9effd32e5
parentfb4896cf183f34fa0d3648415befd385ed1222a4 (diff)
downloadwallet-core-44570081f1861681c3f9799c79c6d1c57673195e.tar.gz
wallet-core-44570081f1861681c3f9799c79c6d1c57673195e.tar.bz2
wallet-core-44570081f1861681c3f9799c79c6d1c57673195e.zip
fix zeroOfCurrency
-rw-r--r--packages/taler-wallet-core/src/operations/pay-peer.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-peer.ts b/packages/taler-wallet-core/src/operations/pay-peer.ts
index bb36217d6..48434e452 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer.ts
@@ -319,7 +319,7 @@ export async function selectPeerCoins(
exchangeFeeGap[exch.baseUrl] ?? Amounts.zeroOfCurrency(currency);
if (Amounts.cmp(infoExchange.balanceMaterial, instructedAmount) < 0) {
// Show fee gap only if we should've been able to pay with the material amount
- gap = Amounts.zeroOfAmount(currency);
+ gap = Amounts.zeroOfCurrency(currency);
}
perExchange[exch.baseUrl] = {
balanceAvailable: Amounts.stringify(infoExchange.balanceAvailable),