Commit 1c87c2ae authored by ioedeveloper's avatar ioedeveloper

Fixed linting error

parent e46a5a89
...@@ -67,7 +67,7 @@ class ContractDropdownUI { ...@@ -67,7 +67,7 @@ class ContractDropdownUI {
if (this.exEnvironment === 'vm') { if (this.exEnvironment === 'vm') {
this.setCheckedState(false) this.setCheckedState(false)
} else if (this.exEnvironment === 'injected') { } else if (this.exEnvironment === 'injected') {
if(this.networkName === 'Main'){ if (this.networkName === 'Main') {
// select publish to ipfs by default for mainnet // select publish to ipfs by default for mainnet
this.setCheckedState(true) this.setCheckedState(true)
} else { } else {
...@@ -86,7 +86,7 @@ class ContractDropdownUI { ...@@ -86,7 +86,7 @@ class ContractDropdownUI {
} }
toggleCheckedState () { toggleCheckedState () {
if(this.exEnvironment === 'vm') this.networkName = 'VM' if (this.exEnvironment === 'vm') this.networkName = 'VM'
this.ipfsCheckedState = !this.ipfsCheckedState this.ipfsCheckedState = !this.ipfsCheckedState
window.localStorage.setItem(`ipfs/${this.exEnvironment}/${this.networkName}`, this.ipfsCheckedState) window.localStorage.setItem(`ipfs/${this.exEnvironment}/${this.networkName}`, this.ipfsCheckedState)
} }
...@@ -101,10 +101,10 @@ class ContractDropdownUI { ...@@ -101,10 +101,10 @@ class ContractDropdownUI {
this.createPanel = yo`<div class="${css.deployDropdown}"></div>` this.createPanel = yo`<div class="${css.deployDropdown}"></div>`
this.orLabel = yo`<div class="${css.orLabel}">or</div>` this.orLabel = yo`<div class="${css.orLabel}">or</div>`
if(this.exEnvironment === 'vm') this.networkName = 'VM' if (this.exEnvironment === 'vm') this.networkName = 'VM'
const savedConfig = window.localStorage.getItem(`ipfs/${this.exEnvironment}/${this.networkName}`) const savedConfig = window.localStorage.getItem(`ipfs/${this.exEnvironment}/${this.networkName}`)
this.ipfsCheckedState = savedConfig === 'true' ? true : false this.ipfsCheckedState = savedConfig === 'true' ? true : false // eslint-disable-line
const ipfsCheckbox = this.ipfsCheckedState === true const ipfsCheckbox = this.ipfsCheckedState === true
? yo`<input id="deployAndRunPublishToIPFS" class="mr-2" checked type="checkbox" onchange=${this.toggleCheckedState.bind(this)} >` ? yo`<input id="deployAndRunPublishToIPFS" class="mr-2" checked type="checkbox" onchange=${this.toggleCheckedState.bind(this)} >`
: yo`<input id="deployAndRunPublishToIPFS" class="mr-2" type="checkbox" onchange=${this.toggleCheckedState.bind(this)} >` : yo`<input id="deployAndRunPublishToIPFS" class="mr-2" type="checkbox" onchange=${this.toggleCheckedState.bind(this)} >`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment