repeated analysis improvement

pull/1398/head
aniket-engg 3 years ago committed by Aniket
parent 730c8e72fe
commit a53d46679f
  1. 6
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -260,9 +260,13 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
warningErrors.push(options)
warningMessage.push({ msg, options, hasWarning: true, warningModuleName: 'Slither Analysis' })
})
setShowSlitherResult('block')
showWarnings(warningMessage, 'warningModuleName')
props.event.trigger('staticAnaysisWarning', [warningCount])
if (showSlitherResult === 'none') {
setShowSlitherResult('block')
} else if (showSlitherResult === 'block' && slitherResultEnabled) {
showWarningsByModule('Slither Analysis')
}
}
}).catch((error) => {
console.log('Error found:', error) // This should be removed once testing done

Loading…
Cancel
Save