1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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.
This commit is contained in:
Dan Finlay 2016-07-29 12:19:15 -07:00
parent 591fe3f9be
commit 8a4d8eca64

View File

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