Skip to content

Commit

Permalink
Update: Enhanced loading times (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed May 23, 2024
1 parent b23f545 commit 0f68b7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ function showMovies(movies, mainElement) {
const voteAvg = vote_count === 0 ? "Unrated" : vote_average.toFixed(1);
const ratingClass = vote_count === 0 ? "unrated" : getClassByRate(vote_average);

if (overview === "") {
overview = "No overview available.";
}

movieEl.innerHTML = `
${movieImage}
<div class="movie-info" style="display: flex; justify-content: space-between; align-items: start; cursor: pointer;">
Expand Down

0 comments on commit 0f68b7b

Please sign in to comment.