fix: don't assume costumes would always exist

This commit is contained in:
2026-03-21 17:57:16 +07:00 Unverified
parent 781a0d865e
commit 73f364a6e2
+5 -6
View File
@@ -242,12 +242,11 @@ export function card(app: App) {
})), })),
assets assets
.hook( .hook(
char.costumeId (char.costumeId && avatar.Costumes?.[char.costumeId].Art) ||
? avatar.Costumes![char.costumeId].Art avatar.SideIconName.replace(
: avatar.SideIconName.replace( "AvatarIcon_Side",
"AvatarIcon_Side", "Gacha_AvatarImg",
"Gacha_AvatarImg", ),
),
(buf) => (buf) =>
featherImage(buf, { featherImage(buf, {
passes: [[0, 0.3, 0, 0]], passes: [[0, 0.3, 0, 0]],