fix(card): filter out "None" constellations and talents
Build and Deploy / build-and-deploy (push) Successful in 2m58s

This commit is contained in:
2026-06-26 13:45:01 +07:00 Unverified
parent b34ce4f9d2
commit 017b3581c1
+25 -22
View File
@@ -554,28 +554,30 @@ export function card(app: App) {
tw="flex align-start flex-col text-[1.12em]"
className={`${avatar.Element} locked`}
>
{avatar.Consts.map((c, i) => (
<div
style={{
position: "relative",
display: "flex",
margin: "-.55em 0 0em -.6em",
}}
>
<ConstsSvg
locked={i >= (char.talentIdList?.length || 0)}
/>
<img
src={c}
alt={`Constellation ${i + 1}`}
tw={`absolute top-0 left-0 w-[1.6em] mt-[.72em] ml-[.7em] pointer-events-auto ${
i >= (char.talentIdList?.length || 0)
? "opacity-40"
: ""
}`}
/>
</div>
))}
{avatar.Consts.filter((c) => c !== "None").map(
(c, i) => (
<div
style={{
position: "relative",
display: "flex",
margin: "-.55em 0 0em -.6em",
}}
>
<ConstsSvg
locked={i >= (char.talentIdList?.length || 0)}
/>
<img
src={c}
alt={`Constellation ${i + 1}`}
tw={`absolute top-0 left-0 w-[1.6em] mt-[.72em] ml-[.7em] pointer-events-auto ${
i >= (char.talentIdList?.length || 0)
? "opacity-40"
: ""
}`}
/>
</div>
),
)}
</div>
{/* talent-wrap */}
<div
@@ -596,6 +598,7 @@ export function card(app: App) {
(k) => k[0] === `${s}`,
)!,
).map(([key, src]) => {
if (src === "None") return;
const extra =
char.proudSkillExtraLevelMap?.[
`${avatar.ProudMap[key]}`