Skip to content

Commit

Permalink
remove trailing 0 from HighlightItem when value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
george-misan committed Feb 5, 2025
1 parent 0ab83b9 commit b12913e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const CompletionRequirementsTabulation: React.FC<
highlightText={pointsRequiredForCompletion}
/>
)}
{attemptedExercisesRequiredForCompletion && (
{!!attemptedExercisesRequiredForCompletion && (
<HighlightItem
highlightColor={baseTheme.colors.gradient["blue"]}
highlightDescription={t("attempted-exercises-required-for-completion")}
Expand Down

0 comments on commit b12913e

Please sign in to comment.