From 9640a6c54324b7422c24d38edfd349397113fee7 Mon Sep 17 00:00:00 2001
From: kumavis <aaron@kumavis.me>
Date: Mon, 30 May 2016 08:22:19 -1000
Subject: [PATCH] idStore - track network failure

---
 app/scripts/lib/idStore.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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)