From 17d63acaed8fd9a885368831858ba216558ff155 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 21 Nov 2016 18:16:59 -0800 Subject: Fix camel casing on setSelectedAccount action. --- ui/app/accounts/index.js | 2 +- ui/app/actions.js | 4 ++-- ui/example.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ui') diff --git a/ui/app/accounts/index.js b/ui/app/accounts/index.js index 8035ee6ab..fcb3a7b0f 100644 --- a/ui/app/accounts/index.js +++ b/ui/app/accounts/index.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) { diff --git a/ui/app/actions.js b/ui/app/actions.js index b61f9f464..8fc7e3a29 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -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) } diff --git a/ui/example.js b/ui/example.js index a7e6b80ed..888748c48 100644 --- a/ui/example.js +++ b/ui/example.js @@ -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() -- cgit