Skip to content

Commit

Permalink
fix issue where first page wouldn't show
Browse files Browse the repository at this point in the history
  • Loading branch information
awitkowski0 committed Apr 23, 2024
1 parent c1b7450 commit 9eac4ac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ function App() {
setCurrentRecIndex(0);

const recommendations = json.response;

if (recommendation.length === 0) {
console.log("Empty list!");
setRecommendation("No movie found!");
return;
}
const bestRec = recommendations[0];
console.log(bestRec);
let cleanName = bestRec.replace(/\s+\(\d{4}\)/, "");
Expand Down

0 comments on commit 9eac4ac

Please sign in to comment.