aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/idStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/idStore.js')
-rw-r--r--app/scripts/lib/idStore.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 9d2552e8b..4ce4fd6f2 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -131,7 +131,10 @@ IdentityStore.prototype.revealAccount = function(cb) {
}
IdentityStore.prototype.getNetwork = function(tries) {
- if (tries === 0) return
+ if (tries === 0) {
+ this._currentState.network = 'error'
+ return
+ }
this.web3.version.getNetwork((err, network) => {
if (err) {
return this.getNetwork(tries - 1, cb)