diff --git a/src/common/model/player/impl/scoresaber-player.ts b/src/common/model/player/impl/scoresaber-player.ts index d5b3f28..714e5d5 100644 --- a/src/common/model/player/impl/scoresaber-player.ts +++ b/src/common/model/player/impl/scoresaber-player.ts @@ -132,7 +132,9 @@ export async function getScoreSaberPlayerFromToken( // Calculate the pp change const ppChange = - todayStats.pp && yesterdayStats.pp ? todayStats.pp - yesterdayStats.pp : 0; + todayStats && yesterdayStats && todayStats.pp && yesterdayStats.pp + ? todayStats.pp - yesterdayStats.pp + : 0; return { id: token.id,