fix error when showing pp
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lee 2023-03-27 16:08:57 +01:00
parent 6f0fdb3778
commit faa314960f
2 changed files with 4 additions and 2 deletions

@ -62,14 +62,14 @@ export default function ScoreStats() {
height={30} height={30}
src="https://cdn.fascinated.cc/Hc1eD7QY.png" src="https://cdn.fascinated.cc/Hc1eD7QY.png"
unoptimized unoptimized
alt="ScoreSaber logo" alt="BeatLeader logo"
></Image> ></Image>
<p <p
style={{ style={{
marginLeft: "5px", marginLeft: "5px",
}} }}
> >
{scoreSaberPP.toFixed(0)}pp {scoreSaberPP.pp.toFixed(0)}pp
</p> </p>
</div> </div>
) : null} ) : null}

@ -154,6 +154,8 @@ export const useSongDataStore = create<SongDataState>()((set) => ({
} }
const { bsr, mapArt } = mapDataresponse.data.data; const { bsr, mapArt } = mapDataresponse.data.data;
console.log(scoreSaberLeaderboardData);
set({ set({
isLoading: false, isLoading: false,
hasError: hasError, hasError: hasError,