Skip to content

Commit 6d50999

Browse files
committed
Also use index on empty name
1 parent 89b4d89 commit 6d50999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/tools/gachacalc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ function getRawName({ const: c, gachaTarget }: { const: number, gachaTarget: Gac
604604
const name = c == gachaTarget.banner.minConst ? "Not owned" : `${gachaTarget.banner.constFormat}${c}`
605605
if (gachaTargets.length == 1) return name
606606
const index = gachaTargets.findIndex(gt => gt.id == gachaTarget.id)
607-
const banner = `${gachaTarget.name ?? (index + 1)}. `
607+
const banner = `${gachaTarget.name || (index + 1)}. `
608608
return `${banner}${name}`
609609
}
610610

0 commit comments

Comments
 (0)