|
|
@ -409,7 +409,6 @@ useEffect(() => { |
|
|
|
|
|
|
|
|
|
|
|
const handleBasicEnabled = () => { |
|
|
|
const handleBasicEnabled = () => { |
|
|
|
if (basicEnabled) { |
|
|
|
if (basicEnabled) { |
|
|
|
console.log('remix is: ', { basicEnabled }) |
|
|
|
|
|
|
|
setBasicEnabled(false) |
|
|
|
setBasicEnabled(false) |
|
|
|
if (solhintEnabled) { |
|
|
|
if (solhintEnabled) { |
|
|
|
setSelectedTab('solhint') |
|
|
|
setSelectedTab('solhint') |
|
|
@ -424,6 +423,9 @@ useEffect(() => { |
|
|
|
const handleLinterEnabled = () => { |
|
|
|
const handleLinterEnabled = () => { |
|
|
|
if (solhintEnabled) { |
|
|
|
if (solhintEnabled) { |
|
|
|
setSolhintEnabled(false) |
|
|
|
setSolhintEnabled(false) |
|
|
|
|
|
|
|
if (basicEnabled) { |
|
|
|
|
|
|
|
setSelectedTab('remix') |
|
|
|
|
|
|
|
} |
|
|
|
props.event.trigger('staticAnalysisWarning', [-1]) |
|
|
|
props.event.trigger('staticAnalysisWarning', [-1]) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setSolhintEnabled(true) |
|
|
|
setSolhintEnabled(true) |
|
|
|