Skip to content

Commit 48afddc

Browse files
committed
[Fix] Set key on radio buttons in mage randomizer
Eliminates a stack trace in the developer tools.
1 parent 5aad33a commit 48afddc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/molecules/AmountPicker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const renderOptions = (optionsCount: number) =>
2020
const optionLabel = (i + 1).toString() // our array starts a 0 -> therefore '+1'
2121
return (
2222
<FormControlLabel
23+
key={optionLabel}
2324
value={optionLabel}
2425
control={<Radio />}
2526
label={optionLabel}

0 commit comments

Comments
 (0)