Skip to content

Commit

Permalink
steamgameplayers improve checking for no reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Nov 5, 2024
1 parent 4a3e192 commit 9a87579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/steamgameplayers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const fetchRecommendationData = async (gameId) => {
result: "Could not fetch reviews data!"
};
}
else if (!response.body.results) {
else if (!response.body.results || !response.body.results.rollups) {
return {
result: "This game has no reviews!"
};
Expand Down

0 comments on commit 9a87579

Please sign in to comment.