This commit is contained in:
parent
b271160db5
commit
0b87f36ded
@ -132,7 +132,9 @@ export async function getScoreSaberPlayerFromToken(
|
|||||||
|
|
||||||
// Calculate the pp change
|
// Calculate the pp change
|
||||||
const ppChange =
|
const ppChange =
|
||||||
todayStats.pp && yesterdayStats.pp ? todayStats.pp - yesterdayStats.pp : 0;
|
todayStats && yesterdayStats && todayStats.pp && yesterdayStats.pp
|
||||||
|
? todayStats.pp - yesterdayStats.pp
|
||||||
|
: 0;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: token.id,
|
id: token.id,
|
||||||
|
Reference in New Issue
Block a user