Skip to content

Commit

Permalink
fix migration for preferences controller tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Jul 27, 2018
1 parent 228f48c commit e687bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/migrations/028.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
}
}

Expand Down

0 comments on commit e687bc5

Please sign in to comment.