Skip to content

Commit

Permalink
Fix heading
Browse files Browse the repository at this point in the history
  • Loading branch information
domlander committed Dec 5, 2024
1 parent 2cc19e6 commit 23ddc99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions dotcom-rendering/src/components/BigSixOnwardsContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,20 @@ export const BigSixOnwardsContent = ({ url, discussionApiUrl }: Props) => {
const firstSlice25 = trails.slice(1, 2);
const secondSlice25 = trails.slice(2, 6);

const heading = data.heading || data.displayname;

return (
<div
data-component="onwards-content-gallery-style"
css={containerStyles}
>
<LeftColumn>
<h2 css={headerStyles}>
<span>{data.heading}</span>
<span>{heading}</span>
</h2>
</LeftColumn>
<h2 css={mobileHeaderStyles}>
<span>{data.heading}</span>
<span>{heading}</span>
</h2>
<div>
<UL direction="row" padBottom={true}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export const OnwardsUpper = ({
/>
</Section>
)}
{!isPaidContent && curatedDataUrl !== undefined && (
{!!curatedDataUrl && !isPaidContent && (
<Section
fullWidth={true}
borderColour={palette('--article-border')}
Expand Down

0 comments on commit 23ddc99

Please sign in to comment.