Fix camel casing on setSelectedAccount action.

feature/default_network_editable
Dan Finlay 8 years ago
parent 3577aa4649
commit 17d63acaed
  1. 2
      ui/app/accounts/index.js
  2. 4
      ui/app/actions.js
  3. 2
      ui/example.js

@ -134,7 +134,7 @@ AccountsScreen.prototype.onSelect = function (address, event) {
event.stopPropagation()
// if already selected, deselect
if (this.props.selectedAccount === address) address = null
this.props.dispatch(actions.setselectedAccount(address))
this.props.dispatch(actions.setSelectedAccount(address))
}
AccountsScreen.prototype.onShowDetail = function (address, event) {

@ -71,7 +71,7 @@ var actions = {
TRANSACTION_ERROR: 'TRANSACTION_ERROR',
NEXT_TX: 'NEXT_TX',
PREVIOUS_TX: 'PREV_TX',
setselectedAccount: setselectedAccount,
setSelectedAccount: setSelectedAccount,
signMsg: signMsg,
cancelMsg: cancelMsg,
sendTx: sendTx,
@ -259,7 +259,7 @@ function showInfoPage () {
}
}
function setselectedAccount (address) {
function setSelectedAccount (address) {
return (dispatch) => {
background.setSelectedAccount(address)
}

@ -85,7 +85,7 @@ accountManager.submitPassword = function (password, cb) {
}
}
accountManager.setselectedAccount = function (address, cb) {
accountManager.setSelectedAccount = function (address, cb) {
selectedAccount = address
cb(null, getState())
this._didUpdate()

Loading…
Cancel
Save