mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Merge pull request #89 from MetaMask/SupportUndefinedAddressSelection
Support undefined address selection
This commit is contained in:
commit
c4bf8fcce6
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "__MSG_appName__",
|
||||
"short_name": "Metamask",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"manifest_version": 2,
|
||||
"description": "__MSG_appDescription__",
|
||||
"icons": {
|
||||
|
@ -98,6 +98,11 @@ IdentityStore.prototype.getSelectedAddress = function(){
|
||||
}
|
||||
|
||||
IdentityStore.prototype.setSelectedAddress = function(address){
|
||||
if (!address) {
|
||||
var addresses = this._getAddresses()
|
||||
address = addresses[0]
|
||||
}
|
||||
|
||||
this._currentState.selectedAddress = address
|
||||
this._didUpdate()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user