fix point 6

pull/5370/head
Joseph Izang 1 year ago
parent 081fec70e7
commit 2081aaca09
  1. 4
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -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)

Loading…
Cancel
Save