Skip to content

Commit

Permalink
fix(list-item): fix list item unavailable bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benprotheroe committed Jun 27, 2024
1 parent 4f700d5 commit bb7c87d
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 bb7c87d

Please sign in to comment.