diff --git a/typescript/client/src/components/game/songs/IIDXStyleSongChartInfoFormat.tsx b/typescript/client/src/components/game/songs/IIDXStyleSongChartInfoFormat.tsx index 2ee3fe6da..c77dcd17b 100644 --- a/typescript/client/src/components/game/songs/IIDXStyleSongChartInfoFormat.tsx +++ b/typescript/client/src/components/game/songs/IIDXStyleSongChartInfoFormat.tsx @@ -14,12 +14,16 @@ export default function IIDXStyleSongChartInfoFormat({ }: { chart: ChartDocument | null; game: V3Game; - song: SongDocument<"bms" | "chunithm" | "iidx" | "maimaidx" | "ongeki" | "pms" | "popn" | "arcaea">; + song: SongDocument< + "arcaea" | "bms" | "chunithm" | "iidx" | "maimaidx" | "ongeki" | "pms" | "popn" + >; }) { - const genre = - game === "ongeki" - ? ((song as SongDocument<"ongeki">).data.flavorGenre ?? song.data.genre) - : song.data.genre; + let genre = song.data.genre; + if (game === "ongeki") { + genre = (song as SongDocument<"ongeki">).data.flavorGenre ?? song.data.genre; + } else if (game === "arcaea") { + genre = (song as SongDocument<"arceaa">).data.songPack; + } return ( <> diff --git a/typescript/client/src/components/game/songs/SongChartInfoFormat.tsx b/typescript/client/src/components/game/songs/SongChartInfoFormat.tsx index aaf417334..ef87f0598 100644 --- a/typescript/client/src/components/game/songs/SongChartInfoFormat.tsx +++ b/typescript/client/src/components/game/songs/SongChartInfoFormat.tsx @@ -28,7 +28,7 @@ export default function SongChartInfoFormat({ /> ); } - if (["ongeki", "chunithm", "maimaidx", "arcaea"].includes(gameGroup)) { + if (["arcaea", "chunithm", "maimaidx", "ongeki"].includes(gameGroup)) { let displayVersion = chart?.data.displayVersion ?? song.data.displayVersion; if (gameGroup === "arcaea") { displayVersion = `version ${displayVersion}`; @@ -37,7 +37,7 @@ export default function SongChartInfoFormat({ <> , + song: song as SongDocument<"arcaea" | "chunithm" | "maimaidx" | "ongeki">, chart, game, }}