aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-04 01:25:52 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-04 06:46:01 +0800
commitac4868170f4c61d13291389d01bf1002fe240ed4 (patch)
treed4000928e6b890d99d28b8109ad82cde7bf82fce /ui/app/reducers
parent45dbd017e65e5698db4580c77d723bface0e9b63 (diff)
downloadtangerine-wallet-browser-ac4868170f4c61d13291389d01bf1002fe240ed4.tar
tangerine-wallet-browser-ac4868170f4c61d13291389d01bf1002fe240ed4.tar.gz
tangerine-wallet-browser-ac4868170f4c61d13291389d01bf1002fe240ed4.tar.bz2
tangerine-wallet-browser-ac4868170f4c61d13291389d01bf1002fe240ed4.tar.lz
tangerine-wallet-browser-ac4868170f4c61d13291389d01bf1002fe240ed4.tar.xz
tangerine-wallet-browser-ac4868170f4c61d13291389d01bf1002fe240ed4.tar.zst
tangerine-wallet-browser-ac4868170f4c61d13291389d01bf1002fe240ed4.zip
Enables remove token and ensures add/remove update the list without need for refresh.
Diffstat (limited to 'ui/app/reducers')
-rw-r--r--ui/app/reducers/metamask.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index cdc98d05e..a0884b834 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -19,6 +19,7 @@ function reduceMetamask (state, action) {
addressBook: [],
selectedTokenAddress: null,
tokenExchangeRates: {},
+ tokens: [],
}, state.metamask)
switch (action.type) {
@@ -146,6 +147,11 @@ function reduceMetamask (state, action) {
},
})
+ case actions.UPDATE_TOKENS:
+ return extend(metamaskState, {
+ tokens: action.newTokens,
+ })
+
default:
return metamaskState