mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Update: fix pluralization for beer and brewery header like count
This commit is contained in:
@@ -86,7 +86,8 @@ const BeerInfoHeader: FC<BeerInfoHeaderProps> = ({ beerPost }) => {
|
|||||||
<div>
|
<div>
|
||||||
{(!!likeCount || likeCount === 0) && (
|
{(!!likeCount || likeCount === 0) && (
|
||||||
<span>
|
<span>
|
||||||
Liked by {likeCount} user{likeCount !== 1 && 's'}
|
Liked by {likeCount}
|
||||||
|
{likeCount !== 1 ? ' users' : ' user'}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ const BreweryInfoHeader: FC<BreweryInfoHeaderProps> = ({ breweryPost }) => {
|
|||||||
<div>
|
<div>
|
||||||
{(!!likeCount || likeCount === 0) && (
|
{(!!likeCount || likeCount === 0) && (
|
||||||
<span>
|
<span>
|
||||||
Liked by {likeCount} user{likeCount !== 1 && 's'}
|
Liked by {likeCount} {likeCount === 1 ? 'user' : 'users'}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user