Make the UI play nice with empty RPC lists.

This commit is contained in:
Kevin Serrano 2017-02-22 15:32:01 -08:00
parent 1d0f5fb51c
commit 3be6ee5f6c
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
"isUnlocked": false,
"rpcTarget": "https://rawtestrpc.metamask.io/",
"identities": {},
"frequentRpcList": [],
"unapprovedTxs": {},
"currentFiat": "USD",
"conversionRate": 12.7527416,

View File

@ -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 || [],
}
}