diff --git a/src/molecules/02_AudioPlayer/AudioPlayer.tsx b/src/molecules/02_AudioPlayer/AudioPlayer.tsx index 2ab92dd..a8f40f1 100644 --- a/src/molecules/02_AudioPlayer/AudioPlayer.tsx +++ b/src/molecules/02_AudioPlayer/AudioPlayer.tsx @@ -93,7 +93,7 @@ export const HAudioPlayer = function ({ if (isPlaying) { audioElement.current?.pause(); - audioElement.current.currentTime = 0; + if (audioElement.current) audioElement.current.currentTime = 0; setStatus('stopped'); } else { audioElement.current?.play();