Update memory-game/components/MemoryGame.jsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/1500/head
prathoseraaj V 2 months ago committed by GitHub
parent 06ee2b84c4
commit 18c3b4c3d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -43,7 +43,7 @@ const MemoryGame = () => {
const [firstId] = flipped;
if (array[firstId].number === array[secondId].number) {
setSelectedPairs([...slectedPairs, firstId, secondId]);
setSelectedPairs([...selectedPairs, firstId, secondId]);
setFlipped([]);
setDisabled(false);
} else {

Loading…
Cancel
Save