Make case condition more consistent. Remove extra action. Fix incorrect display of network.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 625c54b7ec
commit 25c46a1636
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 2
      ui/app/actions.js
  2. 3
      ui/app/components/network.js

@ -174,7 +174,7 @@ function tryUnlockMetamask (password) {
function createNewVault (password, entropy) { function createNewVault (password, entropy) {
return (dispatch) => { return (dispatch) => {
dispatch(actions.createNewVaultInProgress()) // dispatch(actions.createNewVaultInProgress())
background.createNewVault(password, entropy, (err, newState) => { background.createNewVault(password, entropy, (err, newState) => {
if (err) { if (err) {
return dispatch(actions.showWarning(err.message)) return dispatch(actions.showWarning(err.message))

@ -36,13 +36,14 @@ Network.prototype.render = function () {
} else if (providerName === 'mainnet') { } else if (providerName === 'mainnet') {
hoverText = 'Main Ethereum Network' hoverText = 'Main Ethereum Network'
iconName = 'ethereum-network' iconName = 'ethereum-network'
} else if (parseInt(networkNumber) === 2) { } else if (providerName === 'testnet') {
hoverText = 'Morden Test Network' hoverText = 'Morden Test Network'
iconName = 'morden-test-network' iconName = 'morden-test-network'
} else { } else {
hoverText = 'Unknown Private Network' hoverText = 'Unknown Private Network'
iconName = 'unknown-private-network' iconName = 'unknown-private-network'
} }
return ( return (
h('#network_component.flex-center.pointer', { h('#network_component.flex-center.pointer', {
style: { style: {

Loading…
Cancel
Save