Skip to content

Commit

Permalink
fix(infinite): fetch result struct
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksasiriski committed Jun 19, 2024
1 parent c5b6bd1 commit 26adbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/functions/api/additionalresults.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { fetchResults } from './fetchresults';
* @returns {Promise<ResultType[]>}
*/
export async function fetchAdditionalResults(oldResults, params) {
const newResults = await fetchResults(params);
const newResults = (await fetchResults(params)).results;

// get the last rank from old results
const lastRank = oldResults[oldResults.length - 1].rank;
Expand Down

0 comments on commit 26adbb6

Please sign in to comment.