Skip to content

Commit

Permalink
fix: maimai uses rate, actually plug in the wacca cell (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
j1nxie authored Jul 14, 2024
1 parent 7f0bfff commit 9fd4440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/components/tables/cells/MaimaiRatingCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function MaimaiRatingCell({ score }: { score: ScoreDocument | PBS
WebkitTextFillColor: "transparent",
}}
>
<strong>{score.calculatedData.rating?.toFixed(2) ?? "N/A"}</strong>
<strong>{score.calculatedData.rate?.toFixed(2) ?? "N/A"}</strong>
</div>
</td>
);
Expand Down Expand Up @@ -53,7 +53,7 @@ export default function MaimaiRatingCell({ score }: { score: ScoreDocument | PBS
outline: "white",
}}
>
<strong>{score.calculatedData.rating?.toFixed(2) ?? "N/A"}</strong>
<strong>{score.calculatedData.rate?.toFixed(2) ?? "N/A"}</strong>
</td>
);
}
3 changes: 2 additions & 1 deletion client/src/lib/game-implementations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -642,7 +643,7 @@ export const GPT_CLIENT_IMPLEMENTATIONS: GPTClientImplementations = {
<LampCell lamp={sc.scoreData.lamp} colour={GetEnumColour(sc, "lamp")} />
</>
),
ratingCell: ({ sc, rating }) => <RatingCell score={sc} rating={rating} />,
ratingCell: ({ sc }) => <WACCARatingCell score={sc} />,
},
"itg:Stamina": {
sessionImportantScoreCount: 10,
Expand Down

0 comments on commit 9fd4440

Please sign in to comment.