check currency so it wont compare coins that are not related
This commit is contained in:
parent
f1008c9661
commit
ce3c3d7839
@ -551,6 +551,9 @@ export async function getPeerPaymentBalanceDetailsInTx(
|
|||||||
});
|
});
|
||||||
|
|
||||||
await tx.refreshGroups.iter().forEach((r) => {
|
await tx.refreshGroups.iter().forEach((r) => {
|
||||||
|
if (r.currency != req.currency) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
balanceAvailable = Amounts.add(
|
balanceAvailable = Amounts.add(
|
||||||
balanceAvailable,
|
balanceAvailable,
|
||||||
computeRefreshGroupAvailableAmount(r),
|
computeRefreshGroupAvailableAmount(r),
|
||||||
|
Loading…
Reference in New Issue
Block a user