Commit 6b743f0a authored by aniket-engg's avatar aniket-engg Committed by Aniket

update count on badge

parent 21c7dd47
...@@ -236,14 +236,17 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { ...@@ -236,14 +236,17 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
warningMessage.push({ msg, options, hasWarning: true, warningModuleName: item.title }) warningMessage.push({ msg, options, hasWarning: true, warningModuleName: item.title })
}) })
showWarnings(warningMessage, 'warningModuleName') showWarnings(warningMessage, 'warningModuleName')
props.event.trigger('staticAnaysisWarning', [warningCount])
} }
}) })
}) })
} else showWarnings(warningMessage, 'warningModuleName') } else {
}) showWarnings(warningMessage, 'warningModuleName')
if (categoryIndex.length > 0) { if (categoryIndex.length > 0) {
props.event.trigger('staticAnaysisWarning', [warningCount]) props.event.trigger('staticAnaysisWarning', [warningCount])
}
} }
})
} else { } else {
if (categoryIndex.length) { if (categoryIndex.length) {
warningContainer.current.innerText = 'No compiled AST available' warningContainer.current.innerText = 'No compiled AST available'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment