From 26a4d3ef2a9b6df59129dd2060f8c8b24bc2a4c6 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Oct 2023 11:12:32 +0100 Subject: [PATCH] actually call the callback --- src/store/scoresaberScoresStore.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/scoresaberScoresStore.ts b/src/store/scoresaberScoresStore.ts index e7958b7..7a9b4c2 100644 --- a/src/store/scoresaberScoresStore.ts +++ b/src/store/scoresaberScoresStore.ts @@ -141,6 +141,9 @@ export const useScoresaberScoresStore = create()( break; } + // Call the callback if it exists + callback?.(page, newScores.pageInfo.totalPages); + if (mostRecentScoreId) { // remove the old score const oldScoreIndex = oldScores.findIndex(