fix case where after compilation, toggling showLibraryWarnings triggers badge needlessly

pull/3838/head
Joseph Izang 1 year ago
parent daefd70527
commit bef549856a
  1. 2
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -352,11 +352,9 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
const handleShowLibsWarning = () => {
if (showLibsWarning) {
props.event.trigger('staticAnaysisWarning', [remixAnalysisNoLibs.length])
setShowLibsWarning(false)
} else {
filterWarnings()
props.event.trigger('staticAnaysisWarning', [ssaWarnings.length])
setShowLibsWarning(true)
}
}

Loading…
Cancel
Save