From db1ad442ff5b7599454d3df756d11184af4ea2b4 Mon Sep 17 00:00:00 2001 From: Michiel van der Geest Date: Fri, 28 Jun 2024 10:17:18 +0200 Subject: [PATCH] Renamed param ind to index. --- src/pages/MemoryGame.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/MemoryGame.js b/src/pages/MemoryGame.js index cb0d665..4d0ab32 100644 --- a/src/pages/MemoryGame.js +++ b/src/pages/MemoryGame.js @@ -59,7 +59,7 @@ export default Blits.Component('Announcer', { - + { - return { ...card, id: `card${ind}` } + cards: cards.concat(cards).map((card, index) => { + return { ...card, id: `card${index}` } }), focusedRow: -1, focusedCol: -1,