fix setting enabled

pull/1415/head
filip mertens 3 years ago committed by yann300
parent 09d5cab3a7
commit 764d97dcf8
  1. 5
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -89,7 +89,10 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
dispatch({ type: '', payload: {} })
// Show 'Enable Slither Analysis' checkbox
if (currentWorkspace && currentWorkspace.isLocalhost === true) setShowSlither('visible')
else setShowSlither('hidden')
else {
setShowSlither('hidden')
setSlitherEnabled(false)
}
})
return () => { }
}, [props])

Loading…
Cancel
Save