Fix network name reference

When adding the classic network to the menu, I left a reference to a property that is not always existent, so we needed a fallback for it.
feature/default_network_editable
Dan Finlay 8 years ago
parent 591fe3f9be
commit 8a4d8eca64
  1. 7
      ui/app/components/network.js

@ -13,7 +13,12 @@ function Network () {
Network.prototype.render = function () { Network.prototype.render = function () {
const props = this.props const props = this.props
const networkNumber = props.network const networkNumber = props.network
const providerName = props.provider.type let providerName
try {
providerName = props.provider.type
} catch (e) {
providerName = null
}
let iconName, hoverText let iconName, hoverText
if (networkNumber === 'loading') { if (networkNumber === 'loading') {

Loading…
Cancel
Save