diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index 925719ea44..0f44391260 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js @@ -92,16 +92,23 @@ class ContractDropdownUI { const savedConfig = window.localStorage.getItem(`ipfs/${this.exEnvironment}/${this.networkName}`) this.ipfsCheckedState = savedConfig === 'true' ? true : false // eslint-disable-line - this.ipfsCheckbox = this.ipfsCheckedState === true - ? yo`` - : yo`` + this.ipfsCheckbox = yo` + this.toggleCheckedState.bind()} + > + ` + if (this.ipfsCheckedState) this.ipfsCheckbox.checked = true this.deployCheckBox = yo` -