mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
fix stars
This commit is contained in:
parent
fcb25fc639
commit
f0d6689f0c
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ function renderPlaceCard(context, place) {
|
|||
if (place.ratings?.score) {
|
||||
let ratingString = "";
|
||||
|
||||
ratingString += icon("maps_star_half").repeat(Math.floor(place.ratings.score))
|
||||
ratingString += icon("maps_star").repeat(Math.floor(place.ratings.score))
|
||||
|
||||
if (place.ratings.score < 5) {
|
||||
if ((place.ratings.score - Math.floor(place.ratings.score)) >= 0.5) ratingString += icon("maps_star_half")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue