Skip to content

Commit e2f5c91

Browse files
committed
tidy
1 parent d5fb9f0 commit e2f5c91

File tree

1 file changed

+8
-6
lines changed
  • dotcom-rendering/src/components/Card

1 file changed

+8
-6
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,7 @@ export const Card = ({
785785
);
786786

787787
if (sublinkPosition === 'outer') {
788-
return (
789-
<>
790-
<Sublinks />
791-
</>
792-
);
788+
return <Sublinks />;
793789
}
794790

795791
return (
@@ -1249,7 +1245,7 @@ export const Card = ({
12491245
flex-grow: 1;
12501246
`}
12511247
>
1252-
{/* why is this needed, sublinks? */}
1248+
{/* why is this needed, to hide the headline if we're in the splash? */}
12531249
{storylinesStyle && isFlexSplash
12541250
? null
12551251
: headlinePosition === 'inner' && (
@@ -1282,6 +1278,12 @@ export const Card = ({
12821278
}
12831279
showLabsRedesign={showLabsRedesign}
12841280
/>
1281+
{!isUndefined(starRating) ? (
1282+
<StarRatingComponent
1283+
rating={starRating}
1284+
cardHasImage={!!image}
1285+
/>
1286+
) : null}
12851287
</HeadlineWrapper>
12861288
)}
12871289

0 commit comments

Comments
 (0)