aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/preferences.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-06-05 06:34:38 +0800
committerDan Finlay <dan@danfinlay.com>2018-06-05 06:34:38 +0800
commit41f292437dd6c7144e36efa8609a419c7dd88da7 (patch)
tree937246d88e3dac3598567a1ae6cba81600c5def9 /app/scripts/controllers/preferences.js
parentae156e10872faae3040540a7f440af5882a79ec2 (diff)
downloadtangerine-wallet-browser-41f292437dd6c7144e36efa8609a419c7dd88da7.tar
tangerine-wallet-browser-41f292437dd6c7144e36efa8609a419c7dd88da7.tar.gz
tangerine-wallet-browser-41f292437dd6c7144e36efa8609a419c7dd88da7.tar.bz2
tangerine-wallet-browser-41f292437dd6c7144e36efa8609a419c7dd88da7.tar.lz
tangerine-wallet-browser-41f292437dd6c7144e36efa8609a419c7dd88da7.tar.xz
tangerine-wallet-browser-41f292437dd6c7144e36efa8609a419c7dd88da7.tar.zst
tangerine-wallet-browser-41f292437dd6c7144e36efa8609a419c7dd88da7.zip
Record identity before deleting it
Diffstat (limited to 'app/scripts/controllers/preferences.js')
-rw-r--r--app/scripts/controllers/preferences.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js
index 942546528..2fe009f9a 100644
--- a/app/scripts/controllers/preferences.js
+++ b/app/scripts/controllers/preferences.js
@@ -119,8 +119,8 @@ class PreferencesController {
let newlyLost = {}
Object.keys(identities).forEach((identity) => {
if (!addresses.includes(identity)) {
- delete identities[identity]
newlyLost[identity] = identities[identity]
+ delete identities[identity]
}
})