Fix offset in GraphsList

This commit is contained in:
Brandon Presley 2023-08-29 11:30:25 +12:00
parent 386a9a7bb2
commit 7eabe63198
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export default function GraphsList() {
if (end) return;
const newOffset = offset + LIMIT;
console.log(`${GraphsList.name}.next:`, { offset, newOffset, term });
const newBests = await getBestSets({ term, offset });
const newBests = await getBestSets({ term, offset: newOffset });
if (newBests.length === 0) return setEnd(true);
if (!bests) return;
setBests([...bests, ...newBests]);