From 9fd44406e2ff8b2a77ac9ba4dd26719e417c10af Mon Sep 17 00:00:00 2001 From: j1nxie Date: Sun, 14 Jul 2024 20:54:08 +0700 Subject: [PATCH] fix: maimai uses `rate`, actually plug in the wacca cell (#1127) --- client/src/components/tables/cells/MaimaiRatingCell.tsx | 4 ++-- client/src/lib/game-implementations.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/tables/cells/MaimaiRatingCell.tsx b/client/src/components/tables/cells/MaimaiRatingCell.tsx index bedcef0c5..2d0409419 100644 --- a/client/src/components/tables/cells/MaimaiRatingCell.tsx +++ b/client/src/components/tables/cells/MaimaiRatingCell.tsx @@ -21,7 +21,7 @@ export default function MaimaiRatingCell({ score }: { score: ScoreDocument | PBS WebkitTextFillColor: "transparent", }} > - {score.calculatedData.rating?.toFixed(2) ?? "N/A"} + {score.calculatedData.rate?.toFixed(2) ?? "N/A"} ); @@ -53,7 +53,7 @@ export default function MaimaiRatingCell({ score }: { score: ScoreDocument | PBS outline: "white", }} > - {score.calculatedData.rating?.toFixed(2) ?? "N/A"} + {score.calculatedData.rate?.toFixed(2) ?? "N/A"} ); } diff --git a/client/src/lib/game-implementations.tsx b/client/src/lib/game-implementations.tsx index 7f35a1989..3bcaf3ec9 100644 --- a/client/src/lib/game-implementations.tsx +++ b/client/src/lib/game-implementations.tsx @@ -24,6 +24,7 @@ import CHUNITHMRatingCell from "components/tables/cells/CHUNITHMRatingCell"; import MaimaiDXRatingCell from "components/tables/cells/MaimaiDXRatingCell"; import MaimaiRatingCell from "components/tables/cells/MaimaiRatingCell"; import OngekiRatingCell from "components/tables/cells/OngekiRatingCell"; +import WACCARatingCell from "components/tables/cells/WACCARatingCell"; import { CreateRatingSys, bgc } from "./games/_util"; import { BMS_14K_IMPL, BMS_7K_IMPL, PMS_IMPL } from "./games/bms-pms"; import { IIDX_DP_IMPL, IIDX_SP_IMPL } from "./games/iidx"; @@ -642,7 +643,7 @@ export const GPT_CLIENT_IMPLEMENTATIONS: GPTClientImplementations = { ), - ratingCell: ({ sc, rating }) => , + ratingCell: ({ sc }) => , }, "itg:Stamina": { sessionImportantScoreCount: 10,