From 7eabe631982c851f48162f343222e8460b883352 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 29 Aug 2023 11:30:25 +1200 Subject: [PATCH] Fix offset in GraphsList --- GraphsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GraphsList.tsx b/GraphsList.tsx index c7a1dd4..1ce01d6 100644 --- a/GraphsList.tsx +++ b/GraphsList.tsx @@ -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]);