Fix: isSameIssue() should check counterparty

This commit is contained in:
Elliot Lee
2018-01-26 13:36:35 -08:00
parent 994a6d5e76
commit 7a653e6e63

View File

@@ -52,7 +52,7 @@ function getBookOffers(connection: Connection, account: string,
}
function isSameIssue(a: Amount, b: Amount) {
return a.currency === b.currency && a.issuer === b.issuer
return a.currency === b.currency && a.counterparty === b.counterparty
}
function directionFilter(direction: string, order: OrderbookItem) {