Skip to content

Commit

Permalink
Open accounts page despite HD is not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Dec 28, 2018
1 parent f6081ed commit 56759f2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions old-ui/app/components/account-dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ class AccountDropdowns extends Component {
{
closeMenu: () => {},
onClick: () => {
const isSelected = identity.address === this.props.selected
if (isSelected) {
return
}
this.props.actions.showAccountDetail(identity.address)
if (this.ifHardwareAcc(keyring)) {
const ledger = 'ledger'
if (keyring.type.toLowerCase().includes(ledger)) {
Expand All @@ -79,17 +76,10 @@ class AccountDropdowns extends Component {
.catch(e => reject(e))
})
})
.then(_ => {
this.props.actions.showAccountDetail(identity.address)
})
.catch(e => {
this.props.actions.displayWarning((e && e.message) || e)
})
} else {
this.props.actions.showAccountDetail(identity.address)
}
} else {
this.props.actions.showAccountDetail(identity.address)
}
},
style: {
Expand Down

0 comments on commit 56759f2

Please sign in to comment.