diff --git a/src/store/songDataStore.ts b/src/store/songDataStore.ts index 35c87e2..0b3c996 100644 --- a/src/store/songDataStore.ts +++ b/src/store/songDataStore.ts @@ -186,25 +186,23 @@ export const useSongDataStore = create()((set) => ({ setPp: (percent: number) => { const leaderboardData = useSongDataStore.getState().mapLeaderboardData; - if ( - leaderboardData.beatleader.stars == undefined || - leaderboardData.scoresaber.stars == undefined - ) { - setTimeout(() => { - useSongDataStore.getState().setPp(percent); - }, 100); - } + // if ( + // leaderboardData.beatleader.stars == undefined || + // leaderboardData.scoresaber.stars == undefined + // ) { + // setTimeout(() => { + // useSongDataStore.getState().setPp(percent); + // }, 100); + // } - const scoreSaberMapStarCount = - useSongDataStore.getState().mapLeaderboardData.scoresaber.stars; + const scoreSaberMapStarCount = leaderboardData.scoresaber.stars; let scoreSaberPP = Utils.calculatePP( scoreSaberMapStarCount, percent, "ScoreSaber" ); - const beatLeaderMapStarCount = - useSongDataStore.getState().mapLeaderboardData.beatleader.stars; + const beatLeaderMapStarCount = leaderboardData.beatleader.stars; let beatLeaderPP = Utils.calculatePP( beatLeaderMapStarCount, percent,