aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/idStore.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-10-29 17:29:25 +0800
committerDan Finlay <dan@danfinlay.com>2016-10-29 17:29:25 +0800
commit18e5173f061c2e21b5acb3e1b329343b5cffc558 (patch)
tree5da23547c31351ee4da5288c7c958804f6cc30e2 /app/scripts/lib/idStore.js
parent331d9c91ee42f766fe56e2ebef1d1ad283d6c438 (diff)
downloadtangerine-wallet-browser-18e5173f061c2e21b5acb3e1b329343b5cffc558.tar
tangerine-wallet-browser-18e5173f061c2e21b5acb3e1b329343b5cffc558.tar.gz
tangerine-wallet-browser-18e5173f061c2e21b5acb3e1b329343b5cffc558.tar.bz2
tangerine-wallet-browser-18e5173f061c2e21b5acb3e1b329343b5cffc558.tar.lz
tangerine-wallet-browser-18e5173f061c2e21b5acb3e1b329343b5cffc558.tar.xz
tangerine-wallet-browser-18e5173f061c2e21b5acb3e1b329343b5cffc558.tar.zst
tangerine-wallet-browser-18e5173f061c2e21b5acb3e1b329343b5cffc558.zip
Now migrating old vaults to new DEN format
Diffstat (limited to 'app/scripts/lib/idStore.js')
-rw-r--r--app/scripts/lib/idStore.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 14f25dd1d..8ee2b62dd 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -422,7 +422,9 @@ IdentityStore.prototype._loadIdentities = function () {
var addresses = this._getAddresses()
addresses.forEach((address, i) => {
// // add to ethStore
- this._ethStore.addAccount(ethUtil.addHexPrefix(address))
+ if (this._ethStore) {
+ this._ethStore.addAccount(ethUtil.addHexPrefix(address))
+ }
// add to identities
const defaultLabel = 'Wallet ' + (i + 1)
const nickname = configManager.nicknameForWallet(address)