mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Merge pull request #147 from MetaMask/DefaultToList
When no account is selected, show accounts view
This commit is contained in:
commit
0c293f9df0
@ -7,10 +7,11 @@ module.exports = reduceApp
|
|||||||
function reduceApp(state, action) {
|
function reduceApp(state, action) {
|
||||||
|
|
||||||
// clone and defaults
|
// clone and defaults
|
||||||
|
const selectedAccount = state.metamask.selectedAccount
|
||||||
var defaultView = {
|
var defaultView = {
|
||||||
name: 'accountDetail',
|
name: selectedAccount ? 'accountDetail' : 'accounts',
|
||||||
detailView: null,
|
detailView: null,
|
||||||
context: state.metamask.selectedAccount,
|
context: selectedAccount,
|
||||||
}
|
}
|
||||||
|
|
||||||
// confirm seed words
|
// confirm seed words
|
||||||
|
Loading…
Reference in New Issue
Block a user