diff options
| -rw-r--r-- | morsehero/src/pages/HomePage.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/morsehero/src/pages/HomePage.tsx b/morsehero/src/pages/HomePage.tsx index 7ec4e90..bf07bd5 100644 --- a/morsehero/src/pages/HomePage.tsx +++ b/morsehero/src/pages/HomePage.tsx @@ -48,6 +48,14 @@ const HomePage = () => { // Clear feedback setFeedback(''); + // Reset button states + optionButtonsRef.current.forEach(button => { + if (button) { + button.disabled = false; + button.classList.remove('correct', 'incorrect', 'key-pressed'); + } + }); + // Generate a random character const randomIndex = Math.floor(Math.random() * allChars.length); const newChar = allChars[randomIndex]; |
