From 3a2dbe6423c607e7c7e7571ef8a448530923896b Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Oct 2023 11:33:59 +0100 Subject: [PATCH] fix a bug where scanning on the timed interval would happen twice --- src/store/scoresaberScoresStore.ts | 1 - src/store/settingsStore.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/store/scoresaberScoresStore.ts b/src/store/scoresaberScoresStore.ts index f28ee6e..24bec0f 100644 --- a/src/store/scoresaberScoresStore.ts +++ b/src/store/scoresaberScoresStore.ts @@ -270,7 +270,6 @@ export const useScoresaberScoresStore = create()( timeUntilRefreshMs / 1000, "seconds to refresh scores for players", ); - setTimeout(() => get().updatePlayerScores(), timeUntilRefreshMs); return; } diff --git a/src/store/settingsStore.ts b/src/store/settingsStore.ts index ecde96f..bbe693c 100644 --- a/src/store/settingsStore.ts +++ b/src/store/settingsStore.ts @@ -86,7 +86,6 @@ export const useSettingsStore = create()( timeUntilRefreshMs / 1000, "to refresh profiles", ); - setTimeout(() => this.refreshProfiles(), timeUntilRefreshMs); return; }