mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 05:48:00 +03:00
Fix bug where PBs was always equal to scores count.
This commit is contained in:
@@ -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>[]) {
|
||||
|
||||
Reference in New Issue
Block a user