taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 44570081f1861681c3f9799c79c6d1c57673195e
parent fb4896cf183f34fa0d3648415befd385ed1222a4
Author: Sebastian <sebasjm@gmail.com>
Date:   Wed, 18 Jan 2023 12:36:36 -0300

fix zeroOfCurrency

Diffstat:
Mpackages/taler-wallet-core/src/operations/pay-peer.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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),