From 3e816fe090d32e5565a068f3fb623b682be4feab Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Fri, 22 Mar 2024 17:31:34 +0100 Subject: [PATCH] Hide dismissed counter for backwards compatibility --- src/components/Insights/InsightsCatalog/index.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/Insights/InsightsCatalog/index.tsx b/src/components/Insights/InsightsCatalog/index.tsx index 116f2e534..108953049 100644 --- a/src/components/Insights/InsightsCatalog/index.tsx +++ b/src/components/Insights/InsightsCatalog/index.tsx @@ -260,12 +260,13 @@ export const InsightsCatalog = (props: InsightsCatalogProps) => { Back to All Issues - {mode === ViewMode.OnlyDismissed && ( - - {props.dismissedCount} - dismissed {formatUnit(props.dismissedCount || 0, "issue")} - - )} + {mode === ViewMode.OnlyDismissed && + isNumber(props.dismissedCount) && ( + + {props.dismissedCount} + dismissed {formatUnit(props.dismissedCount || 0, "issue")} + + )} {mode === ViewMode.OnlyUnread && isMarkingAsReadToolbarVisible && (