mirror of
https://github.com/starshardstudio/peafowl.git
synced 2024-11-24 22:14:19 +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>
|
</h2>
|
||||||
<div className={"reviewinfo-rating"}>
|
<div className={"reviewinfo-rating"}>
|
||||||
<data value={rating}>
|
<data value={rating}>
|
||||||
{rating}
|
{rating !== 0 && rating}
|
||||||
</data>
|
</data>
|
||||||
</div>
|
</div>
|
||||||
<div className={"reviewinfo-bar-base"} aria-hidden={true}/>
|
<div className={"reviewinfo-bar-base"} aria-hidden={true}/>
|
||||||
|
|
Loading…
Reference in a new issue