don't show song count if not present for home carousel

This commit is contained in:
Kendall Garner 2025-05-09 19:08:36 -07:00
parent 3980c8ea97
commit 773f349b66
No known key found for this signature in database
GPG key ID: 9355F387FE765C94

View file

@ -207,11 +207,14 @@ export const FeatureCarousel = ({ data }: FeatureCarouselProps) => {
</Badge>
))}
<Badge size="lg">{currentItem?.releaseYear}</Badge>
{currentItem?.songCount !== null &&
currentItem?.songCount !== undefined && (
<Badge size="lg">
{t('entity.trackWithCount', {
count: currentItem?.songCount || 0,
})}
</Badge>
)}
</Group>
<Group position="apart">
<Button