From 2798d5f4d294da16d868ec2458fc65d2ea5a171a Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sat, 13 Nov 2021 21:11:01 +0000 Subject: [PATCH] Fix bug where chuni tables didnt have the right amount of rows --- .../components/tables/scores/GenericScoreTable.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/components/tables/scores/GenericScoreTable.tsx b/client/src/components/tables/scores/GenericScoreTable.tsx index 4fdefd12f..991a2f682 100644 --- a/client/src/components/tables/scores/GenericScoreTable.tsx +++ b/client/src/components/tables/scores/GenericScoreTable.tsx @@ -2,11 +2,13 @@ import React from "react"; import { Game, GetGamePTConfig, integer, PublicUserDocument } from "tachi-common"; import { ScoreDataset } from "types/tables"; import { Playtype } from "types/tachi"; +import { UppercaseFirst } from "util/misc"; import { NumericSOV, StrSOV } from "util/sorts"; import { CreateDefaultScoreSearchParams } from "util/tables/create-search"; import DifficultyCell from "../cells/DifficultyCell"; import IndicatorsCell from "../cells/IndicatorsCell"; import TimestampCell from "../cells/TimestampCell"; +import TitleCell from "../cells/TitleCell"; import UserCell from "../cells/UserCell"; import DropdownRow from "../components/DropdownRow"; import TachiTable, { Header } from "../components/TachiTable"; @@ -41,8 +43,8 @@ export default function GenericScoreTable({ ["Score", "Score", NumericSOV(x => x.scoreData.percent)], ["Lamp", "Lamp", NumericSOV(x => x.scoreData.lampIndex)], [ - gptConfig.defaultScoreRatingAlg, - gptConfig.defaultScoreRatingAlg, + UppercaseFirst(gptConfig.defaultScoreRatingAlg), + UppercaseFirst(gptConfig.defaultScoreRatingAlg), NumericSOV(x => x.calculatedData[gptConfig.defaultScoreRatingAlg] ?? 0), ], ["Timestamp", "Timestamp", NumericSOV(x => x.timeAchieved ?? 0)], @@ -101,6 +103,12 @@ function Row({ {userCol && } +