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 0f68b7b commit 8879184
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MovieVerse-Frontend/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,13 @@ function showMovies(items, container, category) {
title = words.slice(0, 9).join(' ');
}

const overview = item.overview || 'No overview available.';
let overview = item.overview || 'No overview available.';
const biography = item.biography || 'Click to view the details of this person.';

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

const { id, profile_path, poster_path } = item;
const imagePath = profile_path || poster_path ? IMGPATH + (profile_path || poster_path) : null;

Expand Down

0 comments on commit 8879184

Please sign in to comment.