diff --git a/client/src/app/routes/GameRoutes.tsx b/client/src/app/routes/GameRoutes.tsx index 93d87cd30..e349cbc89 100644 --- a/client/src/app/routes/GameRoutes.tsx +++ b/client/src/app/routes/GameRoutes.tsx @@ -32,7 +32,7 @@ import { } from "tachi-common"; import { SongsReturn } from "types/api-returns"; import { GamePT, SetState } from "types/react"; -import { APIFetchV1 } from "util/api"; +import { APIFetchV1, ToCDNURL } from "util/api"; import { IsSupportedGame, IsSupportedPlaytype } from "util/asserts"; import { ChangeOpacity } from "util/color-opacity"; import { NumericSOV } from "util/sorts"; @@ -242,11 +242,11 @@ function SongInfoHeader({ justifyContent: "space-evenly", }} > - {imgShow && ( + {imgShow && "displayVersion" in song.data && ( setImgShow(false)} + src={ToCDNURL(`/game-icons/${game}/${song.data.displayVersion}`)} + // onError={() => seetImgShow(false)} className="w-100" />