Skip to content

Commit 1f29d90

Browse files
committed
Fix mona
1 parent 3d5484e commit 1f29d90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pages/characters/[name].tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,20 @@ function TalentCosts({ skills }: { skills: Skills[] }) {
9191

9292
const books = talents
9393
.flatMap(s => [
94-
s?.costs?.mapping.Book,
95-
s?.costs?.mapping.Book1,
96-
s?.costs?.mapping.Book2,
97-
s?.costs?.mapping.Book3,
94+
s?.costs?.mapping?.Book,
95+
s?.costs?.mapping?.Book1,
96+
s?.costs?.mapping?.Book2,
97+
s?.costs?.mapping?.Book3,
9898
])
9999
.filter((x, i, a) => x && a.indexOf(x) == i)
100100
.map(x => `Guide to ${x}`)
101101

102102
const mats = talents
103-
.map(s => s?.costs?.mapping.BossMat)
103+
.map(s => s?.costs?.mapping?.BossMat)
104104
.filter((x, i, a) => x && a.indexOf(x) == i)
105105

106106
const drops = talents
107-
.map(s => s?.costs?.mapping.EnemyDropTier3)
107+
.map(s => s?.costs?.mapping?.EnemyDropTier3)
108108
.filter((x, i, a) => x && a.indexOf(x) == i)
109109

110110
const all = [...books, ...mats, ...drops]

0 commit comments

Comments
 (0)