Skip to content

Commit

Permalink
fix(media-unit-stats): use ?? instead ||
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangvu12 committed Nov 22, 2023
1 parent 161f195 commit b679722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/media-unit-stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const MediaUnitStats: React.FC<

<Text variant="sm" weight="normal" className="text-gray-300">
{media.mediaListEntry?.progress && ' | '}
{releasedEpisode || totalMediaUnit} {'| '}
{releasedEpisode ?? totalMediaUnit} {'| '}
</Text>

{totalMediaUnit ? (
Expand Down

0 comments on commit b679722

Please sign in to comment.