diff --git a/src/components/Insights/InsightsCatalog/index.tsx b/src/components/Insights/InsightsCatalog/index.tsx index 0b73e4982..6cc3f9811 100644 --- a/src/components/Insights/InsightsCatalog/index.tsx +++ b/src/components/Insights/InsightsCatalog/index.tsx @@ -5,6 +5,7 @@ import { useTheme } from "styled-components"; import { getFeatureFlagValue } from "../../../featureFlags"; import { useDebounce } from "../../../hooks/useDebounce"; import { isNumber } from "../../../typeGuards/isNumber"; +import { isUndefined } from "../../../typeGuards/isUndefined"; import { FeatureFlag } from "../../../types"; import { sendTrackingEvent } from "../../../utils/sendTrackingEvent"; import { ConfigContext } from "../../common/App/ConfigContext"; @@ -54,7 +55,7 @@ export const InsightsCatalog = (props: InsightsCatalogProps) => { const isViewModeButtonVisible = Boolean( getFeatureFlagValue(config, FeatureFlag.IS_INSIGHT_DISMISSAL_ENABLED) && - props.dismissedCount + (isUndefined(props.dismissedCount) || props.dismissedCount > 0) // isUndefined - check for backward compatibility, always show when BE does not return this counter ); const refreshData = useCallback(