diff --git a/VERSION b/VERSION index 10c2c0c..4a36342 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.10.0 +3.0.0 diff --git a/play-life-web/package.json b/play-life-web/package.json index 2f763cd..82dbda9 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "2.10.0", + "version": "3.0.0", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/TestWords.jsx b/play-life-web/src/components/TestWords.jsx index 3c5b96d..cd7a6ab 100644 --- a/play-life-web/src/components/TestWords.jsx +++ b/play-life-web/src/components/TestWords.jsx @@ -128,7 +128,15 @@ function TestWords({ onNavigate, wordCount: initialWordCount, configId: initialC } const handleCardFlip = (wordId) => { - setFlippedCards(prev => new Set(prev).add(wordId)) + setFlippedCards(prev => { + const newSet = new Set(prev) + if (newSet.has(wordId)) { + newSet.delete(wordId) + } else { + newSet.add(wordId) + } + return newSet + }) } // Завершение теста @@ -432,7 +440,7 @@ function TestWords({ onNavigate, wordCount: initialWordCount, configId: initialC
!isFlipped && handleCardFlip(word.id)} + onClick={() => handleCardFlip(word.id)} >