Skip to content

Commit

Permalink
Update: Add context referencing for chatbot (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Jul 26, 2024
1 parent 805a1f1 commit cf67ffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MovieVerse-Frontend/js/movie-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,9 @@ async function fetchMovieRatings(imdbId, tmdbMovieData) {
populateMovieDetails(tmdbMovieData, tmdbMovieData.vote_average, 'N/A', 'Metascore information unavailable, click to search on Metacritics', 'Awards information unavailable');
return;
}

let imdbRating = data.imdbRating ? data.imdbRating : 'N/A';
if (imdbRating === 'N/A' || imdbRating === '0.0') {
if (imdbRating === 'N/A' || imdbRating === '0.0' || imdbRating === null) {
imdbRating = 'N/A';
}

Expand Down

0 comments on commit cf67ffa

Please sign in to comment.