mirror of
https://github.com/starshardstudio/peafowl.git
synced 2024-11-24 14:04:20 +00:00
Don't show rating when it's 0 instead of undefined
This commit is contained in:
parent
0cc044ddd7
commit
020e4f413a
1 changed files with 1 additions and 1 deletions
|
@ -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}/>
|
||||
|
|
Loading…
Reference in a new issue