Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always show private network when RPC is not whitelisted #6495

Merged
merged 1 commit into from
Apr 25, 2019

Conversation

chikeichan
Copy link
Contributor

ropsten

@@ -63,7 +60,7 @@ Network.prototype.render = function () {
className: classnames({
'network-component--disabled': this.props.disabled,
'ethereum-network': providerName === 'mainnet',
'ropsten-test-network': providerName === 'ropsten' || parseInt(networkNumber) === 3,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is parseInt(networkNumber) === 3 removed?

@danjm
Copy link
Contributor

danjm commented Apr 25, 2019

How do the code changes relate to the title of the issue?

@chikeichan
Copy link
Contributor Author

The custom network is already stored separately. The problem was only displaying. parseInt(networkNumber) === 3 was added to specifically render Ropsten instead of the custom info whenever network ID is 3 (which represent Ropsten). This is only hardcoded for Ropsten - for all other network, it already show the custom info.

@chikeichan chikeichan merged commit 13605c2 into MetaMask:develop Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants