diff options
rename selectedAccount to selectedAddress
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index a0fed265f..fa1e0deb5 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -90,7 +90,6 @@ var actions = { TRANSACTION_ERROR: 'TRANSACTION_ERROR', NEXT_TX: 'NEXT_TX', PREVIOUS_TX: 'PREV_TX', - setSelectedAccount: setSelectedAccount, signMsg: signMsg, cancelMsg: cancelMsg, sendTx: sendTx, @@ -287,7 +286,7 @@ function importNewAccount (strategy, args) { dispatch(actions.updateMetamaskState(newState)) dispatch({ type: actions.SHOW_ACCOUNT_DETAIL, - value: newState.selectedAccount, + value: newState.selectedAddress, }) }) } @@ -309,10 +308,6 @@ function showInfoPage () { } } -function setSelectedAccount (address) { - return callBackgroundThenUpdate(background.setSelectedAccount, address) -} - function setCurrentFiat (fiat) { return (dispatch) => { dispatch(this.showLoadingIndication()) @@ -508,16 +503,14 @@ function lockMetamask () { function showAccountDetail (address) { return (dispatch) => { dispatch(actions.showLoadingIndication()) - background.setSelectedAccount(address, (err, newState) => { + background.setSelectedAddress(address, (err) => { dispatch(actions.hideLoadingIndication()) if (err) { return dispatch(actions.displayWarning(err.message)) } - - dispatch(actions.updateMetamaskState(newState)) dispatch({ type: actions.SHOW_ACCOUNT_DETAIL, - value: newState.selectedAccount, + value: address, }) }) } |