From 355bd1dcfe76719f02cf2fc56d26e84397e2398c Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 27 Feb 2022 05:51:10 +0000 Subject: [PATCH] boring hail mary --- .../tables/game-core-cells/CHUNITHMCoreCells.tsx | 1 - client/src/components/tables/headers/GameHeaders.tsx | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/components/tables/game-core-cells/CHUNITHMCoreCells.tsx b/client/src/components/tables/game-core-cells/CHUNITHMCoreCells.tsx index 0a38cfa56..3ef2139c8 100644 --- a/client/src/components/tables/game-core-cells/CHUNITHMCoreCells.tsx +++ b/client/src/components/tables/game-core-cells/CHUNITHMCoreCells.tsx @@ -3,7 +3,6 @@ import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common"; import { ChangeOpacity } from "util/color-opacity"; import { FormatMillions } from "util/misc"; import CHUNITHMJudgementCell from "../cells/CHUNITHMJudgementCell"; -import JubeatJudgementCell from "../cells/JubeatJudgementCell"; import LampCell from "../cells/LampCell"; import RatingCell from "../cells/RatingCell"; diff --git a/client/src/components/tables/headers/GameHeaders.tsx b/client/src/components/tables/headers/GameHeaders.tsx index d751c8619..0a94c8518 100644 --- a/client/src/components/tables/headers/GameHeaders.tsx +++ b/client/src/components/tables/headers/GameHeaders.tsx @@ -1,4 +1,3 @@ -import { nanoid } from "nanoid"; import React from "react"; import { Game, @@ -127,10 +126,14 @@ export function GetGPTCoreHeaders | PBScoreDocument<"popn:9B">; - if (!aSc || !bSc) { + if (!aSc && bSc) { return -Infinity; } + if (aSc && !bSc) { + return Infinity; + } + if (aSc.scoreData.lampIndex === bSc.scoreData.lampIndex) { if ( !aSc.scoreData.hitMeta.specificClearType ||