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 ecb62d5919..81f830e1d4 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 @@ -260,8 +260,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { warningErrors.push(options) warningMessage.push({ msg, options, hasWarning: true, warningModuleName: 'Slither Analysis' }) }) - showWarnings(warningMessage, 'warningModuleName') setShowSlitherResult('block') + showWarnings(warningMessage, 'warningModuleName') props.event.trigger('staticAnaysisWarning', [warningCount]) } }).catch((error) => { @@ -271,6 +271,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { }) }) } else { + setShowSlitherResult('none') showWarnings(warningMessage, 'warningModuleName') props.event.trigger('staticAnaysisWarning', [warningCount]) }