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

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

This commit is contained in:
Kevin Serrano 2016-10-30 15:59:55 -07:00
parent 625c54b7ec
commit 25c46a1636
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
2 changed files with 3 additions and 2 deletions

View File

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

View File

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