From cd442e142decdcb14d8f69e9c0364d3f416084e2 Mon Sep 17 00:00:00 2001 From: Lee Stott Date: Fri, 3 Oct 2025 09:34:39 +0100 Subject: [PATCH] Update memory-game/components/MemoryGame.jsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- memory-game/components/MemoryGame.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memory-game/components/MemoryGame.jsx b/memory-game/components/MemoryGame.jsx index 1c791ac0..18c0ae71 100644 --- a/memory-game/components/MemoryGame.jsx +++ b/memory-game/components/MemoryGame.jsx @@ -25,14 +25,14 @@ const MemoryGame = () => { const pairCount = Math.floor(totalCards / 2); const numbers = [...Array(pairCount).keys()].map((n) => n + 1); - const suffledCards = [...numbers, ...numbers] + const shuffledCards = [...numbers, ...numbers] .sort(() => Math.random() - 0.5) .map((number, index) => ({ id: index, number, })); - setArray(suffledCards); + setArray(shuffledCards); setFlipped([]); setSelectedPairs([]); setDisabled(false);