fix pp
Some checks failed
Deploy Backend / deploy (push) Failing after 1m19s
Deploy Website / deploy (push) Successful in 3m36s

This commit is contained in:
Lee 2024-10-11 19:46:03 +01:00
parent ccedfa2645
commit d7a3b734ec

View File

@ -176,7 +176,7 @@ export async function getScoreSaberPlayerFromToken(
}
const statToday = todayStats[`${statType}`];
const statOther = otherStats[`${statType}`];
return (!!(statToday && statOther) ? statToday - statOther : 0) * -1;
return (!!(statToday && statOther) ? statToday - statOther : 0) * (statType == "pp" ? 1 : -1);
};
const getRankPosition = (rank: number): number => {