pull/1108/head
lianahus 4 years ago committed by Liana Husikyan
parent 93a583e2e2
commit eb0eb38ba5
  1. 4
      apps/remix-ide/src/app/tabs/runTab/settings.js

@ -403,13 +403,13 @@ class SettingsUI {
if (!accounts) accounts = [] if (!accounts) accounts = []
if (this.accountListCallId > callid) return if (this.accountListCallId > callid) return
this.accountListCallId++ this.accountListCallId++
for (let loadedaddress in this.loadedAccounts) { for (const loadedaddress in this.loadedAccounts) {
if (accounts.indexOf(loadedaddress) === -1) { if (accounts.indexOf(loadedaddress) === -1) {
txOrigin.removeChild(txOrigin.querySelector('option[value="' + loadedaddress + '"]')) txOrigin.removeChild(txOrigin.querySelector('option[value="' + loadedaddress + '"]'))
delete this.loadedAccounts[loadedaddress] delete this.loadedAccounts[loadedaddress]
} }
} }
for (let i in accounts) { for (const i in accounts) {
const address = accounts[i] const address = accounts[i]
if (!this.loadedAccounts[address]) { if (!this.loadedAccounts[address]) {
txOrigin.appendChild(yo`<option value="${address}" >${address}</option>`) txOrigin.appendChild(yo`<option value="${address}" >${address}</option>`)

Loading…
Cancel
Save