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:
parent
625c54b7ec
commit
25c46a1636
@ -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))
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user