Skip to content

Commit

Permalink
tiny code golf
Browse files Browse the repository at this point in the history
  • Loading branch information
pmusaraj committed Jun 20, 2024
1 parent 32668ce commit 683884e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/screens/DiscoverScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ class DiscoverScreen extends React.Component {
? this.state.results.concat(json.topics)
: json.topics,
loading: false,
hasMoreResults:
json.grouped_search_result &&
json.grouped_search_result.more_full_page_results,
hasMoreResults: json.grouped_search_result?.more_full_page_results,
});
} else {
if (opts.pageNumber > 1) {
Expand Down

0 comments on commit 683884e

Please # to comment.