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

Commit

Permalink
Hide 0 plays on mobile just like desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed Oct 30, 2020
1 parent 12178ca commit 002e179
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit 002e179

Please sign in to comment.