pull/5370/head
lianahus 4 years ago committed by Liana Husikyan
parent 24a51aaa31
commit df4ba3edb8
  1. 4
      apps/remix-ide/src/app/tabs/runTab/settings.js

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

Loading…
Cancel
Save