aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/013.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/migrations/013.js')
-rw-r--r--app/scripts/migrations/013.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/scripts/migrations/013.js b/app/scripts/migrations/013.js
index 8f11e510e..15a9b28d4 100644
--- a/app/scripts/migrations/013.js
+++ b/app/scripts/migrations/013.js
@@ -27,8 +27,11 @@ module.exports = {
function transformState (state) {
const newState = state
- if (newState.config.provider.type === 'testnet') {
- newState.config.provider.type = 'ropsten'
+ const { config } = newState
+ if ( config && config.provider ) {
+ if (config.provider.type === 'testnet') {
+ newState.config.provider.type = 'ropsten'
+ }
}
return newState
}