Skip to content

Commit 7a0b7f7

Browse files
authored
Merge pull request #23 from NHSDigital/feature/tjc-fixDoDontListHeading
Fix DoDontList heading
2 parents 307df91 + 57f0771 commit 7a0b7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/do-dont-list/DoDontList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const DoDontList: DoDontList = ({
2727
}) => (
2828
<div className={classNames('nhsuk-do-dont-list', className)} {...rest}>
2929
<HeadingLevel className="nhsuk-do-dont-list__label" headingLevel={headingLevel}>
30-
{heading || listType === 'do' ? 'Do' : "Don't"}
30+
{heading || (listType === 'do' ? 'Do' : "Don't")}
3131
</HeadingLevel>
3232
<ul
3333
className={classNames(

0 commit comments

Comments
 (0)