diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index c8a6844b63..5135854478 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -71,7 +71,7 @@ class ContractDropdownUI { setCheckedState (value) { value = value === 'true' ? true : value === 'false' ? false : value this.ipfsCheckedState = value - document.getElementById('deployAndRunPublishToIPFS').checked = value + if (this.ipfsCheckbox) this.ipfsCheckbox.checked = value } toggleCheckedState () { @@ -92,13 +92,13 @@ class ContractDropdownUI { const savedConfig = window.localStorage.getItem(`ipfs/${this.exEnvironment}/${this.networkName}`) this.ipfsCheckedState = savedConfig === 'true' ? true : false // eslint-disable-line - const ipfsCheckbox = this.ipfsCheckedState === true - ? yo`` - : yo`` + this.ipfsCheckbox = this.ipfsCheckedState === true + ? yo`` + : yo`` this.deployCheckBox = yo`
- ${ipfsCheckbox} + ${this.ipfsCheckbox}