fix error badge on remix tab

pull/3779/head
Joseph Izang 1 year ago
parent a718b30438
commit fe3ab20ef3
  1. 6
      libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx

@ -32,13 +32,13 @@ export function calculateWarningStateEntries(entries: [string, any][]) {
export function BasicTitle(props: BasicTitleProps) {
return (
<span>Remix{props.warningStateEntries.length > 0 && !props.hideWarnings ? <i data-id="StaticAnalysisErrorCount" className="badge badge-info rounded-circle ml-1">{calculateWarningStateEntries(props.warningStateEntries).length}</i>: (
<span>Remix{props.warningStateEntries.length > 0 ? !props.hideWarnings ? <i data-id="StaticAnalysisErrorCount" className="badge badge-info rounded-circle ml-1">{calculateWarningStateEntries(props.warningStateEntries).length}</i>: (
<i className="badge badge-info rounded-circle ml-1">
{
calculateWarningStateEntries(props.warningStateEntries).errors.length
}
</i>
)}
) : null}
</span>
)
}
}

Loading…
Cancel
Save