From 9c91da72f5ab67d06061c80be0f735d222d2f4dd Mon Sep 17 00:00:00 2001 From: kumavis Date: Tue, 10 May 2016 17:22:09 -0700 Subject: ui - account list - fix select account --- ui/app/account-detail.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/app/account-detail.js') diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js index 2775e24fb..ae4552df6 100644 --- a/ui/app/account-detail.js +++ b/ui/app/account-detail.js @@ -127,8 +127,13 @@ AccountDetailScreen.prototype.transactionList = function() { var transactions = state.transactions return transactionList(transactions + // only transactions that have a hash + .filter(tx => tx.hash) + // only transactions that are from the current address .filter(tx => tx.txParams.from === state.address) + // only transactions that are on the current network .filter(tx => tx.txParams.metamaskNetworkId === state.networkVersion) + // sort by recency .sort((a, b) => b.time - a.time), state.networkVersion) } -- cgit