added key to card loop

This commit is contained in:
Djeeberjr 2021-11-14 17:13:01 +01:00
parent c08e23d659
commit 0303bd3954

View File

@ -21,7 +21,7 @@ const CardGroupComp: React.FC<Props> = ({cardGroup,side,onChange,onRemove}) => {
/>
<div className="flex">
{cardGroup.cards.map((card,index) =>
<CardComp card={card} side={side}
<CardComp key={index} card={card} side={side}
onChange={(newCard)=>{
onChange?.(new CardGroup(
cardGroup.numInDeck,