aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-07-28 04:17:28 +0800
committerEsteban MIno <efmino@uc.cl>2018-07-28 04:17:28 +0800
commite687bc5a47e2157193dfa099a0f45a97fa1aaed1 (patch)
tree6e5d6f18c810db477add669b276c750fc375753c /app/scripts/migrations
parent228f48c6e5423cbf8cfd5d48a3f6f106448cc22e (diff)
downloadtangerine-wallet-browser-e687bc5a47e2157193dfa099a0f45a97fa1aaed1.tar.gz
tangerine-wallet-browser-e687bc5a47e2157193dfa099a0f45a97fa1aaed1.tar.zst
tangerine-wallet-browser-e687bc5a47e2157193dfa099a0f45a97fa1aaed1.zip
fix migration for preferences controller tokens
Diffstat (limited to 'app/scripts/migrations')
-rw-r--r--app/scripts/migrations/028.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/migrations/028.js b/app/scripts/migrations/028.js
index e36884a9c..cbda48584 100644
--- a/app/scripts/migrations/028.js
+++ b/app/scripts/migrations/028.js
@@ -29,7 +29,7 @@ function transformState (state) {
const tokens = newState.TransactionController.tokens
const selectedAddress = newState.PreferencesController.selectedAddress
newState.PreferencesController.tokens = []
- newState.PreferencesController.accountTokens = {selectedAddress: {'mainnet': tokens}}
+ newState.PreferencesController.accountTokens = {[selectedAddress]: {'mainnet': tokens}}
}
}