From 80a968a9ee0571e256fd6a866cdbc546223424c6 Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Fri, 26 Jan 2018 13:36:35 -0800 Subject: [PATCH] Fix: isSameIssue() should check counterparty --- src/ledger/orderbook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ledger/orderbook.ts b/src/ledger/orderbook.ts index 1238128565..9e9ed8c0bb 100644 --- a/src/ledger/orderbook.ts +++ b/src/ledger/orderbook.ts @@ -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) {