From 272ade0f66e9513ceb242a3a14d52cb8bcb7b38e Mon Sep 17 00:00:00 2001 From: Chi Kei Chan Date: Thu, 7 Sep 2017 11:46:05 -0700 Subject: [PATCH] Fix .filter token tx --- ui/app/selectors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/selectors.js b/ui/app/selectors.js index d8764b488..9a8bf5c7e 100644 --- a/ui/app/selectors.js +++ b/ui/app/selectors.js @@ -51,9 +51,10 @@ function transactionsSelector (state) { const transactions = state.metamask.selectedAddressTxList || [] const txsToRender = !shapeShiftTxList ? transactions.concat(unapprovedMsgs) : transactions.concat(unapprovedMsgs, shapeShiftTxList) + console.log({txsToRender, selectedTokenAddress}) return selectedTokenAddress ? txsToRender - .filter(({ to }) => to === selectedTokenAddress) + .filter(({ txParams: { to } }) => to === selectedTokenAddress) .sort((a, b) => b.time - a.time) : txsToRender .sort((a, b) => b.time - a.time)