fix zeroOfCurrency

This commit is contained in:
Sebastian 2023-01-18 12:36:36 -03:00
parent fb4896cf18
commit 44570081f1
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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),