Skip to content

Commit

Permalink
#1496 | Show displayed results count for IndividualSearchResultPagina…
Browse files Browse the repository at this point in the history
…tedView
  • Loading branch information
himeshr committed Sep 13, 2024
1 parent 698a7fc commit 068e034
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SearchResultsHeader extends AbstractComponent {
static propTypes = {
totalCount: PropTypes.number.isRequired,
displayedCount: PropTypes.number.isRequired,
displayResultCounts: PropTypes.number,
displayResultCounts: PropTypes.bool,
};

static SearchResultsLimit = 50;
Expand All @@ -32,7 +32,7 @@ class SearchResultsHeader extends AbstractComponent {

render() {
const {totalCount, displayedCount} = this.props;
const displayResultCounts = (totalCount > SearchResultsHeader.SearchResultsLimit) || displayResultCounts;
const displayResultCounts = (totalCount > SearchResultsHeader.SearchResultsLimit) || this.props.displayResultCounts;
return (
<View style={SearchResultsHeader.styles.container}>
<Text>
Expand Down

0 comments on commit 068e034

Please sign in to comment.