diff options
author | kumavis <aaron@kumavis.me> | 2017-01-31 07:08:31 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-01-31 07:08:31 +0800 |
commit | f9b31fe2c3a43339a4519761e4c8b2f3813e85e0 (patch) | |
tree | 123f368b533b374a89cb5e5da593d3babb5002e2 /app/scripts/lib | |
parent | b1de2cdefa2341eeab8d0269a1b14b349fdd5d16 (diff) | |
download | tangerine-wallet-browser-f9b31fe2c3a43339a4519761e4c8b2f3813e85e0.tar.gz tangerine-wallet-browser-f9b31fe2c3a43339a4519761e4c8b2f3813e85e0.tar.zst tangerine-wallet-browser-f9b31fe2c3a43339a4519761e4c8b2f3813e85e0.zip |
rename selectedAccount to selectedAddress
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/controllers/preferences.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/scripts/lib/controllers/preferences.js b/app/scripts/lib/controllers/preferences.js index e338f5b5e..dc9464c4e 100644 --- a/app/scripts/lib/controllers/preferences.js +++ b/app/scripts/lib/controllers/preferences.js @@ -13,8 +13,11 @@ class PreferencesController { // setSelectedAddress(_address) { - const address = normalizeAddress(_address) - this.store.updateState({ selectedAddress: address }) + return new Promise((resolve, reject) => { + const address = normalizeAddress(_address) + this.store.updateState({ selectedAddress: address }) + resolve() + }) } getSelectedAddress(_address) { |