diff options
Diffstat (limited to 'ui/example.js')
-rw-r--r-- | ui/example.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/example.js b/ui/example.js index f4126438c..888748c48 100644 --- a/ui/example.js +++ b/ui/example.js @@ -53,14 +53,14 @@ function addUnconfTx (txParams) { } var isUnlocked = false -var selectedAddress = null +var selectedAccount = null function getState () { return { isUnlocked: isUnlocked, identities: isUnlocked ? identities : {}, unconfTxs: isUnlocked ? unconfTxs : {}, - selectedAddress: selectedAddress, + selectedAccount: selectedAccount, } } @@ -85,8 +85,8 @@ accountManager.submitPassword = function (password, cb) { } } -accountManager.setSelectedAddress = function (address, cb) { - selectedAddress = address +accountManager.setSelectedAccount = function (address, cb) { + selectedAccount = address cb(null, getState()) this._didUpdate() } |