From 8414a7645de05f9e7d771ce94383d058707dc377 Mon Sep 17 00:00:00 2001 From: Aaron William Po Date: Tue, 4 Apr 2023 22:13:27 -0400 Subject: [PATCH] Fix glitch where like count would just show up as '0' --- components/BeerById/BeerInfoHeader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/BeerById/BeerInfoHeader.tsx b/components/BeerById/BeerInfoHeader.tsx index 56d6de2..44a1936 100644 --- a/components/BeerById/BeerInfoHeader.tsx +++ b/components/BeerById/BeerInfoHeader.tsx @@ -81,7 +81,7 @@ const BeerInfoHeader: FC<{ {beerPost.ibu} IBU
- {likeCount && ( + {(!!likeCount || likeCount === 0) && ( Liked by {likeCount} user{likeCount !== 1 && 's'}