Skip to content

Commit

Permalink
Don't show separator for sectioned mini profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyford committed Nov 27, 2024
1 parent 6d1b957 commit 583e800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dotcom-rendering/src/components/MiniProfiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export const MiniProfiles = ({
isLastElement,
sectioned,
}: MiniProfilesProps) => {
const displaySeparator = !isLastElement && !sectioned;

return (
<ol data-ignore="global-ol-styling">
{miniProfiles.map((miniProfile, index) => (
Expand Down Expand Up @@ -85,7 +87,7 @@ export const MiniProfiles = ({
))}
</MiniProfileComponent>
))}
{!isLastElement && <hr css={separatorStyles} />}
{displaySeparator && <hr css={separatorStyles} />}
</ol>
);
};

0 comments on commit 583e800

Please sign in to comment.