Skip to content

Commit df8b88b

Browse files
committed
change: suggess
1 parent 5e6a83c commit df8b88b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/ResultPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ export function ResultPage({
189189

190190
const { alt } = processAlt(
191191
base,
192-
alts.map(a => Math.max(...a))
192+
selected.map((s, i) =>
193+
alts[i][s] >= 0 ? alts[i][s] : Math.max(...alts[i])
194+
)
193195
)
194196

195197
toast(

0 commit comments

Comments
 (0)