mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 00:08:22 +03:00
fix: terrible session dedup code
This commit is contained in:
@@ -160,13 +160,14 @@ function SessionScoreStatBreakdown({
|
||||
e.score.chartID === score.chartID
|
||||
);
|
||||
|
||||
if (
|
||||
alreadyInArray &&
|
||||
// @ts-expect-error not justifying this
|
||||
alreadyInArray.score.scoreData.enumIndexes[enumValue] < enumIndex
|
||||
) {
|
||||
alreadyInArray.score = score;
|
||||
alreadyInArray.scoreInfo = scoreInfo;
|
||||
if (alreadyInArray) {
|
||||
if (
|
||||
// @ts-expect-error not justifying this
|
||||
alreadyInArray.score.scoreData.enumIndexes[enumValue] < enumIndex
|
||||
) {
|
||||
alreadyInArray.score = score;
|
||||
alreadyInArray.scoreInfo = scoreInfo;
|
||||
}
|
||||
} else {
|
||||
newEnums[metric][enumValue].push({
|
||||
score,
|
||||
|
||||
Reference in New Issue
Block a user