From 33cd988f37e8d8e16bd6ddd267759813aef63c2d Mon Sep 17 00:00:00 2001 From: Anna Beddow Date: Wed, 18 Dec 2024 16:55:43 +0000 Subject: [PATCH] fix linting --- dotcom-rendering/src/components/Kicker.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dotcom-rendering/src/components/Kicker.tsx b/dotcom-rendering/src/components/Kicker.tsx index f8cd7943b8..cefa17ae57 100644 --- a/dotcom-rendering/src/components/Kicker.tsx +++ b/dotcom-rendering/src/components/Kicker.tsx @@ -10,6 +10,7 @@ import type { PodcastSeriesImage } from '../types/tag'; import { CardPicture } from './CardPicture'; import { Island } from './Island'; import { PulsingDot } from './PulsingDot.importable'; +import { isUndefined } from '@guardian/libs'; type Props = { text: string; @@ -74,8 +75,6 @@ export const Kicker = ({ */ const isLiveKicker = !!showPulsingDot; - const displayImage = accentImage?.src; - return (
- {displayImage && ( + {!isUndefined(accentImage?.src) && (