aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/selectors.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-14 03:01:49 +0800
committerGitHub <noreply@github.com>2018-02-14 03:01:49 +0800
commitb4bfdc5e6c5e239397d2447dd9bb5d4ba744abba (patch)
tree16917a2467eb28d2fc24212d0ad1416480b716a5 /ui/app/selectors.js
parentc50a197ab95b462b4416cbf85139f80db9b70f0c (diff)
parentee1197192f2f539d5e63c8d65f77a5cd94bbd7df (diff)
downloadtangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.gz
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.bz2
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.lz
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.xz
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.zst
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.zip
Merge pull request #3239 from MetaMask/uat-next
Uat next
Diffstat (limited to 'ui/app/selectors.js')
-rw-r--r--ui/app/selectors.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/selectors.js b/ui/app/selectors.js
index 38a96c48b..5d2635775 100644
--- a/ui/app/selectors.js
+++ b/ui/app/selectors.js
@@ -116,7 +116,7 @@ function transactionsSelector (state) {
// console.log({txsToRender, selectedTokenAddress})
return selectedTokenAddress
? txsToRender
- .filter(({ txParams: { to } }) => to === selectedTokenAddress)
+ .filter(({ txParams }) => txParams && txParams.to === selectedTokenAddress)
.sort((a, b) => b.time - a.time)
: txsToRender
.sort((a, b) => b.time - a.time)
@@ -179,11 +179,11 @@ function autoAddToBetaUI (state) {
(numberOfAccounts > autoAddAccountsThreshold) &&
(numberOfTokensAdded > autoAddTokensThreshold)
const userIsNotInBeta = !state.metamask.featureFlags.betaUI
-
+
return userIsNotInBeta && userPassesThreshold
}
function getCurrentViewContext (state) {
const { currentView = {} } = state.appState
- return currentView.context
+ return currentView.context
} \ No newline at end of file