Skip to content

Commit

Permalink
Add key to delete character options
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro committed Nov 27, 2024
1 parent ee977fb commit a9f16a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/account/deletecharacter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ export default function DeleteCharacter({ user }: DeleteCharacterProps) {
<VStack spacing={5}>
<FormField key={"name"} error={errors.name?.message} name={"name"} label="Character Name">
<Select {...register("name")}>
{account.data?.players.map((character) => <option value={character.name}>{character.name}</option>)}
{account.data?.players.map((character) => (
<option key={character.name} value={character.name}>
{character.name}
</option>
))}
</Select>
</FormField>
<FormField key={"password"} error={errors.password?.message} name={"password"} label={"Current Password"}>
Expand Down

0 comments on commit a9f16a9

Please sign in to comment.