Skip to content

Commit

Permalink
Tweak boost
Browse files Browse the repository at this point in the history
  • Loading branch information
otenav committed Oct 14, 2024
1 parent 6ec1057 commit dff18b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(sok)/_components/searchResult/SearchResult.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function SearchResult({ searchResult }) {
const totalPages = Math.ceil(searchResult.totalAds / resultsPerPage);
const page = query.has(QueryNames.FROM) ? Math.floor(query.get(QueryNames.FROM) / resultsPerPage) + 1 : 1;
const searchResultRef = useRef();
const SCORE_THRESHOLD = 4;
const SCORE_THRESHOLD = 2;

const indexOfLastWithScoreAboveThreshold = searchResult.ads?.findIndex((ad) => ad.score < SCORE_THRESHOLD);

Expand Down

0 comments on commit dff18b9

Please sign in to comment.