update count on badge

pull/1398/head
aniket-engg 4 years ago committed by Aniket
parent 21c7dd47d3
commit 6b743f0ad1
  1. 11
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -236,14 +236,17 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
warningMessage.push({ msg, options, hasWarning: true, warningModuleName: item.title })
})
showWarnings(warningMessage, 'warningModuleName')
props.event.trigger('staticAnaysisWarning', [warningCount])
}
})
})
} else showWarnings(warningMessage, 'warningModuleName')
})
if (categoryIndex.length > 0) {
props.event.trigger('staticAnaysisWarning', [warningCount])
} else {
showWarnings(warningMessage, 'warningModuleName')
if (categoryIndex.length > 0) {
props.event.trigger('staticAnaysisWarning', [warningCount])
}
}
})
} else {
if (categoryIndex.length) {
warningContainer.current.innerText = 'No compiled AST available'

Loading…
Cancel
Save