From 144e5c902d1192bfe67808c1dcbef255ec560afa Mon Sep 17 00:00:00 2001 From: lianahus Date: Mon, 2 Aug 2021 11:47:44 +0200 Subject: [PATCH] reset only if remixd is deactivated --- .../src/lib/remix-ui-static-analyser.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx index 70f5b20b51..01b4e2fc3e 100644 --- a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx +++ b/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) }