fix point 6

pull/3838/head
Joseph Izang 1 year ago
parent 21d37c5686
commit 37ff1d75fe
  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