From 3a6e2a467c44a08a001985170fcb345929f9c9cc Mon Sep 17 00:00:00 2001 From: Nishad Date: Sun, 6 Sep 2020 13:57:19 +0800 Subject: [PATCH] Match fills against all owned OpenOrder accounts --- src/utils/markets.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/markets.js b/src/utils/markets.js index c2fc5c6..bd0471b 100644 --- a/src/utils/markets.js +++ b/src/utils/markets.js @@ -488,9 +488,12 @@ export function useFills(limit = 100) { if (!fills) { return null; } - const openOrdersAccount = openOrdersAccounts[0]; return fills - .filter((fill) => fill.openOrders.equals(openOrdersAccount.publicKey)) + .filter((fill) => + openOrdersAccounts.some((openOrdersAccount) => + fill.openOrders.equals(openOrdersAccount.publicKey), + ), + ) .map((fill) => ({ ...fill, marketName })); }