Skip to content

Commit

Permalink
TNO-2967 Check current date length (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreta committed Aug 16, 2024
1 parent 51e1ab3 commit 96ff9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/subscriber/src/features/search-page/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const SearchPage: React.FC<ISearchType> = ({ showAdvanced }) => {
setTotalResults(currDateResults.length + prevDateResults.length);
if (!groupStoredContent) {
if (res.hits.total.value === 0) toast.warn('No results found.');
if (res.hits.total.value >= 500)
if (currDateResults.length >= 500)
toast.warn(
'Search returned 500+ results, only showing first 500. Please consider refining your search.',
);
Expand Down

0 comments on commit 96ff9a3

Please sign in to comment.