linting fix

pull/1398/head
aniket-engg 3 years ago committed by Aniket
parent dd33715e5e
commit a54706a514
  1. 4
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -134,10 +134,10 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
const showWarningsByModule = (showOnlyModule: string) => {
let count = 0
if(allWarnings[showOnlyModule]) {
if (allWarnings[showOnlyModule]) {
const newWarningState = {}
newWarningState[showOnlyModule] = allWarnings[showOnlyModule]
setWarningState({[showOnlyModule]: allWarnings[showOnlyModule]})
setWarningState({ [showOnlyModule]: allWarnings[showOnlyModule] })
count = allWarnings[showOnlyModule].length
} else if (showOnlyModule === 'all') {
setWarningState(allWarnings)

Loading…
Cancel
Save