From 3be6ee5f6cc5e7b79a8eeea182f91a15eb9ed989 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Wed, 22 Feb 2017 15:32:01 -0800 Subject: [PATCH] Make the UI play nice with empty RPC lists. --- development/states/first-time.json | 1 + ui/app/app.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/development/states/first-time.json b/development/states/first-time.json index 108af9117..3554ee911 100644 --- a/development/states/first-time.json +++ b/development/states/first-time.json @@ -4,6 +4,7 @@ "isUnlocked": false, "rpcTarget": "https://rawtestrpc.metamask.io/", "identities": {}, + "frequentRpcList": [], "unapprovedTxs": {}, "currentFiat": "USD", "conversionRate": 12.7527416, diff --git a/ui/app/app.js b/ui/app/app.js index c1358f50f..d61f93dd2 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -58,7 +58,7 @@ function mapStateToProps (state) { forgottenPassword: state.appState.forgottenPassword, lastUnreadNotice: state.metamask.lastUnreadNotice, lostAccounts: state.metamask.lostAccounts, - frequentRpcList: state.metamask.frequentRpcList, + frequentRpcList: state.metamask.frequentRpcList || [], } }