Skip to content

Commit

Permalink
Use isundefined from libs
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Jan 8, 2025
1 parent dec12ff commit 6990c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dotcom-rendering/src/components/Masthead/HighlightsCard.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -186,7 +187,7 @@ export const HighlightsCard = ({
/>
</div>

{starRating ? (
{!isUndefined(starRating) ? (
<div css={starWrapper}>
<StarRating rating={starRating} size="small" />
</div>
Expand Down

0 comments on commit 6990c97

Please sign in to comment.