diff --git a/dotcom-rendering/src/components/Masthead/HighlightsCard.tsx b/dotcom-rendering/src/components/Masthead/HighlightsCard.tsx index da16bed977..ad3a181f8b 100644 --- a/dotcom-rendering/src/components/Masthead/HighlightsCard.tsx +++ b/dotcom-rendering/src/components/Masthead/HighlightsCard.tsx @@ -1,4 +1,5 @@ import { css } from '@emotion/react'; +import { isUndefined } from '@guardian/libs'; import { between, from, until } from '@guardian/source/foundations'; import { ArticleDesign, type ArticleFormat } from '../../lib/articleFormat'; import { isMediaCard } from '../../lib/cardHelpers'; @@ -186,7 +187,7 @@ export const HighlightsCard = ({ /> - {starRating ? ( + {!isUndefined(starRating) ? (