diff --git a/app/manifest.json b/app/manifest.json index a821cc4cb..f1c87a093 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -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": { diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index 13acd7a82..7fb5a6885 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -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() }