aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-26 06:18:20 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-26 06:18:20 +0800
commit781334da4737ab15cac731a01ecd1e2d81bc60d2 (patch)
tree20f4ee6f865bc2bd399f4a5b2181742b0ba6004b /ui/app/reducers
parent7497b2c8135324382af019d8705c688d71064edc (diff)
downloadtangerine-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/reducers')
-rw-r--r--ui/app/reducers/app.js5
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