aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-06-05 06:18:12 +0800
committerDan Finlay <dan@danfinlay.com>2018-06-05 06:18:12 +0800
commitf07ca73e07c15e338e2f2d2ab794fa1c95619056 (patch)
treeb4a73d101422c97e17d05c2186779badd9e822be /app
parent415ab2d5349903b3cc330b1fdc19afb737eca838 (diff)
downloadtangerine-wallet-browser-f07ca73e07c15e338e2f2d2ab794fa1c95619056.tar
tangerine-wallet-browser-f07ca73e07c15e338e2f2d2ab794fa1c95619056.tar.gz
tangerine-wallet-browser-f07ca73e07c15e338e2f2d2ab794fa1c95619056.tar.bz2
tangerine-wallet-browser-f07ca73e07c15e338e2f2d2ab794fa1c95619056.tar.lz
tangerine-wallet-browser-f07ca73e07c15e338e2f2d2ab794fa1c95619056.tar.xz
tangerine-wallet-browser-f07ca73e07c15e338e2f2d2ab794fa1c95619056.tar.zst
tangerine-wallet-browser-f07ca73e07c15e338e2f2d2ab794fa1c95619056.zip
Add comment
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/preferences.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js
index 30e00f298..b63dd5fcc 100644
--- a/app/scripts/controllers/preferences.js
+++ b/app/scripts/controllers/preferences.js
@@ -146,6 +146,8 @@ class PreferencesController {
this.store.updateState({ identities, lostIdentities })
this.addAddresses(addresses)
+ // If the selected account is no longer valid,
+ // select an arbitrary other account:
let selected = this.getSelectedAddress()
if (!addresses.includes(selected)) {
selected = addresses[0]