From 06789f8b601d78b66f389234a551544510604f61 Mon Sep 17 00:00:00 2001 From: Lee Stott Date: Fri, 3 Oct 2025 09:35:53 +0100 Subject: [PATCH] Update memory-game/components/MemoryGame.jsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- memory-game/components/MemoryGame.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory-game/components/MemoryGame.jsx b/memory-game/components/MemoryGame.jsx index 6ba93344..77a04b04 100644 --- a/memory-game/components/MemoryGame.jsx +++ b/memory-game/components/MemoryGame.jsx @@ -42,7 +42,7 @@ const MemoryGame = () => { const handleMatch = (secondId) => { const [firstId] = flipped; - if (array[firstId].number == array[secondId].number) { + if (array[firstId].number === array[secondId].number) { setSelectedPairs([...slectedPairs, firstId, secondId]); setFlipped([]); setDisabled(false);