Skip to content

Commit

Permalink
add map key
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Jan 13, 2025
1 parent 461c8e0 commit f4929aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Game/Header/discard.modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export const DiscardModalReadOnly = (props: {
<ModalCloseButton />
<ModalBody>
<Grid gridTemplateColumns="1fr 1fr 1fr">
{props.cards?.map((card) => <CardFactory card={card} />)}
{props.cards?.map((card, i) => (
<CardFactory key={card.title + i} card={card} />
))}
</Grid>
</ModalBody>
</ModalContent>
Expand Down

0 comments on commit f4929aa

Please sign in to comment.