diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-08-10 05:24:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 05:24:38 +0800 |
commit | be1d5a7dd959f061b52f475bf8500b943ade786c (patch) | |
tree | 574850fcd9bba8ce9c6545bd319ede2e56d0d92c /app/scripts | |
parent | 0442e5dfd7b22fead7bef3beace58703594dbddc (diff) | |
parent | d263d60b4c37bca5f95253965999d541375cc04b (diff) | |
download | tangerine-wallet-browser-be1d5a7dd959f061b52f475bf8500b943ade786c.tar tangerine-wallet-browser-be1d5a7dd959f061b52f475bf8500b943ade786c.tar.gz tangerine-wallet-browser-be1d5a7dd959f061b52f475bf8500b943ade786c.tar.bz2 tangerine-wallet-browser-be1d5a7dd959f061b52f475bf8500b943ade786c.tar.lz tangerine-wallet-browser-be1d5a7dd959f061b52f475bf8500b943ade786c.tar.xz tangerine-wallet-browser-be1d5a7dd959f061b52f475bf8500b943ade786c.tar.zst tangerine-wallet-browser-be1d5a7dd959f061b52f475bf8500b943ade786c.zip |
Fixes migration 28
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/migrations/028.js | 4 |
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) { |