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 = () => { const handleShowLibsWarning = () => {
if (showLibsWarning) { if (showLibsWarning) {
props.event.trigger('staticAnaysisWarning', [remixAnalysisNoLibs.length])
setShowLibsWarning(false) setShowLibsWarning(false)
} else { } else {
filterWarnings() filterWarnings()
props.event.trigger('staticAnaysisWarning', [ssaWarnings.length])
setShowLibsWarning(true) setShowLibsWarning(true)
} }
} }

Loading…
Cancel
Save