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 (#95)
Browse files Browse the repository at this point in the history
* Hide 0 plays on mobile just like desktop

* 0.22.0
  • Loading branch information
raymondjacobson authored Oct 30, 2020
1 parent 079c0be commit 65404af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Audius",
"description": "The Audius decentralized application",
"author": "Audius",
"version": "0.21.28",
"version": "0.22.0",
"private": true,
"dependencies": {
"@audius/libs": "^1.0.9",
Expand Down
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 65404af

Please sign in to comment.