aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-10 04:15:56 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-10 04:15:56 +0800
commit8df3f2696c4c5aad4e0e929e0a8a38e8c7135f72 (patch)
treeff674f038e847a25d5e6aa9645f6ca87bffbf4dc
parent2b25902561a663b4833ec5879100cc317f5e3e99 (diff)
downloadtangerine-wallet-browser-8df3f2696c4c5aad4e0e929e0a8a38e8c7135f72.tar.gz
tangerine-wallet-browser-8df3f2696c4c5aad4e0e929e0a8a38e8c7135f72.tar.zst
tangerine-wallet-browser-8df3f2696c4c5aad4e0e929e0a8a38e8c7135f72.zip
fix migration 28
-rw-r--r--app/scripts/migrations/028.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/migrations/028.js b/app/scripts/migrations/028.js
index 6553a1052..9e995ee1a 100644
--- a/app/scripts/migrations/028.js
+++ b/app/scripts/migrations/028.js
@@ -25,8 +25,8 @@ function transformState (state) {
const newState = state
if (newState.PreferencesController) {
- if (newState.PreferencesController.tokens) {
- const identities = newState.TransactionController.identities
+ if (newState.PreferencesController.tokens && newState.PreferencesController.identities) {
+ const identities = newState.PreferencesController.identities
const tokens = newState.PreferencesController.tokens
newState.PreferencesController.accountTokens = {}
for (const identity in identities) {