reset only if remixd is deactivated

pull/1412/head
lianahus 3 years ago committed by Aniket
parent f2df1daad9
commit 6a7c8e223c
  1. 12
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -95,14 +95,14 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
})
props.analysisModule.on('manager', 'pluginDeactivated', (plugin) => {
// Reset warning state
setWarningState([])
// Reset badge
props.event.trigger('staticAnaysisWarning', [])
// Reset state
dispatch({ type: '', payload: {} })
// Hide 'Enable Slither Analysis' checkbox
if (plugin.name === 'remixd') {
// Reset warning state
setWarningState([])
// Reset badge
props.event.trigger('staticAnaysisWarning', [])
// Reset state
dispatch({ type: '', payload: {} })
setShowSlither('hidden')
setSlitherEnabled(false)
}

Loading…
Cancel
Save