Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Dec 18, 2024
1 parent 7aa9c34 commit 33cd988
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dotcom-rendering/src/components/Kicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check failure on line 13 in dotcom-rendering/src/components/Kicker.tsx

View workflow job for this annotation

GitHub Actions / lint / check

`@guardian/libs` import should occur before import of `@guardian/source/foundations`

type Props = {
text: string;
Expand Down Expand Up @@ -74,8 +75,6 @@ export const Kicker = ({
*/
const isLiveKicker = !!showPulsingDot;

const displayImage = accentImage?.src;

return (
<div
css={[
Expand All @@ -94,7 +93,7 @@ export const Kicker = ({
: 'transparent',
}}
>
{displayImage && (
{!isUndefined(accentImage?.src) && (
<div
css={[
css`
Expand All @@ -104,7 +103,7 @@ export const Kicker = ({
]}
>
<CardPicture
mainImage={accentImage.src ?? ''}
mainImage={accentImage.src}
imageSize={'small'}
alt={accentImage.altText}
loading={'lazy'}
Expand Down

0 comments on commit 33cd988

Please sign in to comment.