From 020e4f413a2b135abe2e23c8cfcc0e14b80c7d75 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 7 Jul 2024 04:51:33 +0200 Subject: [PATCH] Don't show rating when it's 0 instead of undefined --- _components/ReviewInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_components/ReviewInfo.tsx b/_components/ReviewInfo.tsx index eed4fe7..0f30f51 100644 --- a/_components/ReviewInfo.tsx +++ b/_components/ReviewInfo.tsx @@ -26,7 +26,7 @@ export function ReviewInfo({name, rating, metadata, children}: ReviewInfoProps)
- {rating} + {rating !== 0 && rating}