diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index e34585f14d..ad19f9b5c0 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -43,10 +43,15 @@ class ContractDropdownUI { this.compFails.style.display = 'block' document.querySelector(`.${css.contractNames}`).classList.add(css.contractNamesError) } - this.ipfsCheckedState = false + this.reinitializeIpfsCheckedState() }) } + reinitializeIpfsCheckedState () { + this.ipfsCheckedState = false + document.querySelector('#deployAndRunPublishToIPFS').checked = false + } + render () { this.compFails = yo`` var info = yo`` @@ -56,8 +61,7 @@ class ContractDropdownUI { this.createPanel = yo`
` this.orLabel = yo`
or
` - const ipfsCheckbox = this.ipfsCheckedState ? yo`` - : yo` { + const ipfsCheckbox = yo` { if (!this.ipfsCheckedState) { publishToStorage('ipfs', this.runView.fileProvider, this.runView.fileManager, this.getSelectedContract.apply(this)) this.ipfsCheckedState = true