Skip to content

Commit

Permalink
Merge pull request #214 from oaknational/fix/weird-lesson-count-bug
Browse files Browse the repository at this point in the history
fix(list-item): fix list item unavailable bug
  • Loading branch information
benprotheroe authored Jun 27, 2024
2 parents 4f700d5 + bb7c87d commit eb8b233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ export const Unavailable: Story = {
args: {
disabled: true,
unavailable: true,
numberOfLessons: 14,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const OakPupilJourneyListItem = <C extends ElementType = "a">(
$flexGrow={1}
$justifyContent={"flex-end"}
>
{props.numberOfLessons && !props.unavailable && (
{props.numberOfLessons !== undefined && !props.unavailable && (
<StyledLabel
$font={"heading-7"}
$color={disabledOrUnavailable ? "text-subdued" : "text-primary"}
Expand Down

0 comments on commit eb8b233

Please sign in to comment.