diff options
Diffstat (limited to 'ui/app/reducers/app.js')
-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 |