From 6ae69c2fec04abb0d08065fe14bb40d9fc60fbe0 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 11 Oct 2024 21:38:30 +0100 Subject: [PATCH] don't log unless needed --- projects/common/src/types/player/impl/scoresaber-player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/types/player/impl/scoresaber-player.ts b/projects/common/src/types/player/impl/scoresaber-player.ts index d559ed8..12d009f 100644 --- a/projects/common/src/types/player/impl/scoresaber-player.ts +++ b/projects/common/src/types/player/impl/scoresaber-player.ts @@ -147,7 +147,7 @@ export async function getScoreSaberPlayerFromToken( }; } } - if (missingDays > 0) { + if (missingDays > 0 && missingDays != playerRankHistory.length) { console.log( `Player has ${missingDays} missing day${missingDays > 1 ? "s" : ""}, filling in with fallback history...` );