From fe3ab20ef3afaffeb244c41f5af646624670f455 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 13 Jun 2023 12:40:29 +0100 Subject: [PATCH] fix error badge on remix tab --- .../static-analyser/src/lib/components/BasicTitle.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx b/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx index f841d8c4fd..600d629ffd 100644 --- a/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx +++ b/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 ( - Remix{props.warningStateEntries.length > 0 && !props.hideWarnings ? {calculateWarningStateEntries(props.warningStateEntries).length}: ( + Remix{props.warningStateEntries.length > 0 ? !props.hideWarnings ? {calculateWarningStateEntries(props.warningStateEntries).length}: ( { calculateWarningStateEntries(props.warningStateEntries).errors.length } - )} + ) : null} ) -} \ No newline at end of file +}