Fix glitch where like count would just show up as '0'

This commit is contained in:
Aaron William Po
2023-04-04 22:13:27 -04:00
parent fe683282b2
commit 8414a7645d

View File

@@ -81,7 +81,7 @@ const BeerInfoHeader: FC<{
<span className="text-lg font-medium">{beerPost.ibu} IBU</span>
</div>
<div>
{likeCount && (
{(!!likeCount || likeCount === 0) && (
<span>
Liked by {likeCount} user{likeCount !== 1 && 's'}
</span>