From 0303bd395434065fa407bb8ddc90af1c2313c50b Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sun, 14 Nov 2021 17:13:01 +0100 Subject: [PATCH] added key to card loop --- src/components/CardGroup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CardGroup.tsx b/src/components/CardGroup.tsx index 647ec7b..347de2c 100644 --- a/src/components/CardGroup.tsx +++ b/src/components/CardGroup.tsx @@ -21,7 +21,7 @@ const CardGroupComp: React.FC = ({cardGroup,side,onChange,onRemove}) => { />
{cardGroup.cards.map((card,index) => - { onChange?.(new CardGroup( cardGroup.numInDeck,