diff options
author | Dan <danjm.com@gmail.com> | 2017-10-04 01:25:52 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-04 06:46:01 +0800 |
commit | ac4868170f4c61d13291389d01bf1002fe240ed4 (patch) | |
tree | d4000928e6b890d99d28b8109ad82cde7bf82fce /ui/app/reducers | |
parent | 45dbd017e65e5698db4580c77d723bface0e9b63 (diff) | |
download | tangerine-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.js | 6 |
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 |