starshard/peafowl
Template
1
Fork 0
mirror of https://github.com/starshardstudio/peafowl.git synced 2024-11-21 20:44:19 +00:00

Don't show rating when it's 0 instead of undefined

This commit is contained in:
Steffo 2024-07-07 04:51:33 +02:00
parent 0cc044ddd7
commit 020e4f413a
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -26,7 +26,7 @@ export function ReviewInfo({name, rating, metadata, children}: ReviewInfoProps)
</h2>
<div className={"reviewinfo-rating"}>
<data value={rating}>
{rating}
{rating !== 0 && rating}
</data>
</div>
<div className={"reviewinfo-bar-base"} aria-hidden={true}/>