fix setting enabled

pull/5370/head
filip mertens 3 years ago committed by yann300
parent 6b0a81c633
commit 7b88ffa189
  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: {} }) dispatch({ type: '', payload: {} })
// Show 'Enable Slither Analysis' checkbox // Show 'Enable Slither Analysis' checkbox
if (currentWorkspace && currentWorkspace.isLocalhost === true) setShowSlither('visible') if (currentWorkspace && currentWorkspace.isLocalhost === true) setShowSlither('visible')
else setShowSlither('hidden') else {
setShowSlither('hidden')
setSlitherEnabled(false)
}
}) })
return () => { } return () => { }
}, [props]) }, [props])

Loading…
Cancel
Save