Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Hide 0 plays on mobile just like desktop #95

Merged
merged 2 commits into from
Oct 30, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/track/mobile/TrackTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type ExtraProps = {
}

const formatListenCount = (listenCount?: number) => {
if (!listenCount) return null
const suffix = listenCount === 1 ? 'Play' : 'Plays'
return `${formatCount(listenCount)} ${suffix}`
}
Expand Down