fix a bug where scanning on the timed interval would happen twice
All checks were successful
deploy / deploy (push) Successful in 1m9s
All checks were successful
deploy / deploy (push) Successful in 1m9s
This commit is contained in:
parent
0120938ca3
commit
3a2dbe6423
@ -270,7 +270,6 @@ export const useScoresaberScoresStore = create<ScoreSaberScoresStore>()(
|
|||||||
timeUntilRefreshMs / 1000,
|
timeUntilRefreshMs / 1000,
|
||||||
"seconds to refresh scores for players",
|
"seconds to refresh scores for players",
|
||||||
);
|
);
|
||||||
setTimeout(() => get().updatePlayerScores(), timeUntilRefreshMs);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,6 @@ export const useSettingsStore = create<SettingsStore>()(
|
|||||||
timeUntilRefreshMs / 1000,
|
timeUntilRefreshMs / 1000,
|
||||||
"to refresh profiles",
|
"to refresh profiles",
|
||||||
);
|
);
|
||||||
setTimeout(() => this.refreshProfiles(), timeUntilRefreshMs);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user