From ae4ecce3d9946921f8df50cd4c81a4cac8099a73 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Wed, 29 May 2019 11:36:02 +0200 Subject: [PATCH] Update settings.js --- src/app/tabs/runTab/settings.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/tabs/runTab/settings.js b/src/app/tabs/runTab/settings.js index 9de475a502..ba704e42d7 100644 --- a/src/app/tabs/runTab/settings.js +++ b/src/app/tabs/runTab/settings.js @@ -143,10 +143,11 @@ class SettingsUI { setInterval(() => { this.updateNetwork() - this.fillAccountsList() }, 5000) this.el = el + + this.fillAccountsList() return el } @@ -198,7 +199,6 @@ class SettingsUI { this.selectExEnv.value = this.settings.getProvider() this.event.trigger('clearInstance', []) this.updateNetwork() - this.fillAccountsList() this.updatePlusButton() } @@ -310,6 +310,7 @@ class SettingsUI { let network = this._deps.networkModule.getNetworkProvider this.netUI.innerHTML = (network() !== 'vm') ? `${name} (${id || '-'}) network` : '' }) + this.fillAccountsList() } // TODO: unclear what's the goal of accountListCallId, feels like it can be simplified