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);