Fixing the zombie UI state

This commit is contained in:
maciejhirsz
2018-07-25 18:41:58 +02:00
parent 33c0acb21e
commit 0945d7b4d6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ export class Connection {
// Re-subscribe to previously selected chain
if (this.state.subscribed) {
this.subscribe(this.state.subscribed);
// TODO: Remember the previous subscription for after we get chain info
this.state = this.update({ subscribed: null });
}
this.socket.addEventListener('message', this.handleMessages);