From 1c87c2ae0a84d07f0b53137a497d8f5ed85d1412 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 4 Mar 2020 16:10:24 +0000 Subject: [PATCH] Fixed linting error --- src/app/tabs/runTab/contractDropdown.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index 42b828be55..eebe65fdc8 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -59,7 +59,7 @@ class ContractDropdownUI { this.networkName = name const savedConfig = window.localStorage.getItem(`ipfs/${this.exEnvironment}/${this.networkName}`) - + // check if an already selected option exist else use default workflow if (savedConfig !== null) { this.setCheckedState(savedConfig) @@ -67,7 +67,7 @@ class ContractDropdownUI { if (this.exEnvironment === 'vm') { this.setCheckedState(false) } else if (this.exEnvironment === 'injected') { - if(this.networkName === 'Main'){ + if (this.networkName === 'Main') { // select publish to ipfs by default for mainnet this.setCheckedState(true) } else { @@ -86,7 +86,7 @@ class ContractDropdownUI { } toggleCheckedState () { - if(this.exEnvironment === 'vm') this.networkName = 'VM' + if (this.exEnvironment === 'vm') this.networkName = 'VM' this.ipfsCheckedState = !this.ipfsCheckedState window.localStorage.setItem(`ipfs/${this.exEnvironment}/${this.networkName}`, this.ipfsCheckedState) } @@ -101,10 +101,10 @@ class ContractDropdownUI { this.createPanel = yo`
` this.orLabel = yo`
or
` - if(this.exEnvironment === 'vm') this.networkName = 'VM' + if (this.exEnvironment === 'vm') this.networkName = 'VM' 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 ? yo`` : yo``