Skip to content

Commit

Permalink
Handle zero search result count specially
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Aug 4, 2023
1 parent 45b3634 commit fc47777
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/paginator/search-results/paginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export function PaginatorControls({items}) {
return (
<div className="paginator">
{pages > 1 && <PageButtonBar pages={pages} />}
<div className="summary">{resultRange} of {items} for <b>&apos;{searchTerm}&apos;</b></div>
<div className="summary">
{items > 0 && `${resultRange} of `}
{items} for <b>&apos;{searchTerm}&apos;</b>
</div>
</div>
);
}

0 comments on commit fc47777

Please sign in to comment.