Fix bug where PBs was always equal to scores count.

This commit is contained in:
zkldi
2022-02-09 02:59:13 +00:00
parent ca9c3ec8e9
commit 1c610d2ad8
+1 -1
View File
@@ -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<G extends Game = Game>(songs: SongDocument<G>[]) {