diff options
migrations - fix migration #9 and add safety checks to migrator
Diffstat (limited to 'app/scripts/migrations/009.js')
-rw-r--r-- | app/scripts/migrations/009.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/migrations/009.js b/app/scripts/migrations/009.js index 61b8b7fa2..38e6dcc09 100644 --- a/app/scripts/migrations/009.js +++ b/app/scripts/migrations/009.js @@ -6,7 +6,7 @@ This migration breaks out the CurrencyController substate */ -const merge = require('deep-merge') +const merge = require('deep-extend') module.exports = { version, @@ -25,7 +25,7 @@ module.exports = { } function transformState (state) { - const newState = merge(state, { + const newState = merge({}, state, { CurrencyController: { currentCurrency: state.currentFiat || 'USD', conversionRate: state.conversionRate, |