fix(web): unrated movies show no rating
This commit is contained in:
+1
-1
@@ -1469,7 +1469,7 @@ function movieMain(board: HTMLElement, views: HideableView[]): MovieView {
|
||||
hero.classList.add("has-backdrop");
|
||||
hero.style.setProperty("--backdrop", `url("${backdropUrl}")`);
|
||||
}
|
||||
if (detail.vote_count > 0) {
|
||||
if (detail.vote_average !== null) {
|
||||
ratingEl.hidden = false;
|
||||
ratingEl.append(starIcon(), document.createTextNode(`${formatRating(detail.vote_average)} `));
|
||||
const votes = document.createElement("span");
|
||||
|
||||
Reference in New Issue
Block a user