Update memory-game/components/MemoryGame.jsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/1500/head
Lee Stott 2 months ago committed by GitHub
parent 825ba0d0a1
commit 06789f8b60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save