From 0b87f36ded359a29c6b2b80cf18ad3c89f2363d5 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 28 Sep 2024 08:00:41 +0100 Subject: [PATCH] meow --- src/common/model/player/impl/scoresaber-player.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,