Commit 6a7c8e22 authored by lianahus's avatar lianahus Committed by Aniket

reset only if remixd is deactivated

parent f2df1daa
......@@ -95,14 +95,14 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
})
props.analysisModule.on('manager', 'pluginDeactivated', (plugin) => {
// Hide 'Enable Slither Analysis' checkbox
if (plugin.name === 'remixd') {
// Reset warning state
setWarningState([])
// Reset badge
props.event.trigger('staticAnaysisWarning', [])
// Reset state
dispatch({ type: '', payload: {} })
// Hide 'Enable Slither Analysis' checkbox
if (plugin.name === 'remixd') {
setShowSlither('hidden')
setSlitherEnabled(false)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment