diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-04-26 06:18:20 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-04-26 06:18:20 +0800 |
commit | 781334da4737ab15cac731a01ecd1e2d81bc60d2 (patch) | |
tree | 20f4ee6f865bc2bd399f4a5b2181742b0ba6004b /ui/app | |
parent | 7497b2c8135324382af019d8705c688d71064edc (diff) | |
download | tangerine-wallet-browser-781334da4737ab15cac731a01ecd1e2d81bc60d2.tar tangerine-wallet-browser-781334da4737ab15cac731a01ecd1e2d81bc60d2.tar.gz tangerine-wallet-browser-781334da4737ab15cac731a01ecd1e2d81bc60d2.tar.bz2 tangerine-wallet-browser-781334da4737ab15cac731a01ecd1e2d81bc60d2.tar.lz tangerine-wallet-browser-781334da4737ab15cac731a01ecd1e2d81bc60d2.tar.xz tangerine-wallet-browser-781334da4737ab15cac731a01ecd1e2d81bc60d2.tar.zst tangerine-wallet-browser-781334da4737ab15cac731a01ecd1e2d81bc60d2.zip |
When no account is selected, show accounts view
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/reducers/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index f522e6042..143a67527 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -7,10 +7,11 @@ module.exports = reduceApp function reduceApp(state, action) { // clone and defaults + const selectedAccount = state.metamask.selectedAccount var defaultView = { - name: 'accountDetail', + name: selectedAccount ? 'accountDetail' : 'accounts', detailView: null, - context: state.metamask.selectedAccount, + context: selectedAccount, } // confirm seed words |