aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-04-05 03:16:57 +0800
committerDan Finlay <somniac@me.com>2016-04-05 03:16:57 +0800
commitc4bf8fcce62967b0a09ab848ab28e8471d584d13 (patch)
treeb3276d9dcaf77d429d4bf38573f0a71535ac1664
parent36caecd81c7bbc58226976c3f6cd7141c40b198b (diff)
parentb134bb4374acf7e37f487e304ecffa08cd6d2185 (diff)
downloadtangerine-wallet-browser-c4bf8fcce62967b0a09ab848ab28e8471d584d13.tar.gz
tangerine-wallet-browser-c4bf8fcce62967b0a09ab848ab28e8471d584d13.tar.zst
tangerine-wallet-browser-c4bf8fcce62967b0a09ab848ab28e8471d584d13.zip
Merge pull request #89 from MetaMask/SupportUndefinedAddressSelection
Support undefined address selection
-rw-r--r--app/manifest.json2
-rw-r--r--app/scripts/lib/idStore.js5
2 files changed, 6 insertions, 1 deletions
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()
}