Skip to content

Commit

Permalink
[Fix] Set key on radio buttons in mage randomizer
Browse files Browse the repository at this point in the history
Eliminates a stack trace in the developer tools.
  • Loading branch information
Torgen authored and on3iro committed Dec 16, 2024
1 parent 5aad33a commit 471404b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/molecules/AmountPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const renderOptions = (optionsCount: number) =>
const optionLabel = (i + 1).toString() // our array starts a 0 -> therefore '+1'
return (
<FormControlLabel
key={optionLabel}
value={optionLabel}
control={<Radio />}
label={optionLabel}
Expand Down

0 comments on commit 471404b

Please sign in to comment.