diff --git a/client/src/templates/Challenges/components/speaking-modal.tsx b/client/src/templates/Challenges/components/speaking-modal.tsx index ccd071bf80f..4c028ba334d 100644 --- a/client/src/templates/Challenges/components/speaking-modal.tsx +++ b/client/src/templates/Challenges/components/speaking-modal.tsx @@ -151,6 +151,7 @@ const SpeakingModal = ({ useState(null); const [hasStartedRecording, setHasStartedRecording] = useState(false); const [previouslyListening, setPreviouslyListening] = useState(false); + const playButtonRef = useRef(null); const audioRef = useRef(null); const stopListeningTimeoutRef = useRef< ReturnType | undefined @@ -311,7 +312,12 @@ const SpeakingModal = ({ }; return ( - + {t('speaking-modal.heading')} @@ -323,6 +329,7 @@ const SpeakingModal = ({ {sentence}