From 1c610d2ad8ca1f61afa87dd33805acf106ff2e8a Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 3 Feb 2022 21:07:49 +0000 Subject: [PATCH] Fix bug where PBs was always equal to scores count. --- client/src/util/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/util/data.ts b/client/src/util/data.ts index cb3f2b865..2c1c39cc7 100644 --- a/client/src/util/data.ts +++ b/client/src/util/data.ts @@ -10,7 +10,7 @@ import { } from "tachi-common"; export function GetPBs(scoreInfo: SessionScoreInfo[]) { - return scoreInfo.map(e => e.isNewScore === true || e.lampDelta > 0 || e.scoreDelta > 0); + return scoreInfo.filter(e => e.isNewScore === true || e.lampDelta > 0 || e.scoreDelta > 0); } export function CreateSongMap(songs: SongDocument[]) {