From 781334da4737ab15cac731a01ecd1e2d81bc60d2 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 25 Apr 2016 15:18:20 -0700 Subject: [PATCH] When no account is selected, show accounts view --- ui/app/reducers/app.js | 5 +++-- 1 file 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