fix conditional visibility bug

pull/3922/head
Joseph Izang 1 year ago committed by Aniket
parent ba2f401731
commit 8edf05261b
  1. 6
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -554,6 +554,9 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
props.event.trigger("staticAnalysisWarning", [-1]) props.event.trigger("staticAnalysisWarning", [-1])
} else { } else {
setBasicEnabled(true) setBasicEnabled(true)
if(!solhintEnabled) {
setSelectedTab("remix")
}
props.analysisModule.basicEnabled = true props.analysisModule.basicEnabled = true
props.event.trigger("staticAnalysisWarning", [-1]) props.event.trigger("staticAnalysisWarning", [-1])
} }
@ -569,6 +572,9 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
props.event.trigger("staticAnalysisWarning", [-1]) props.event.trigger("staticAnalysisWarning", [-1])
} else { } else {
setSolhintEnabled(true) setSolhintEnabled(true)
if(!basicEnabled) {
setSelectedTab("solhint")
}
props.analysisModule.solhintEnabled = true props.analysisModule.solhintEnabled = true
props.event.trigger("staticAnalysisWarning", [-1]) props.event.trigger("staticAnalysisWarning", [-1])
} }

Loading…
Cancel
Save