From d20bc56aec20af77aa5e5b3921b329ae97a8ec13 Mon Sep 17 00:00:00 2001 From: Angelo Reale <12191809+angeloreale@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:58:07 +0100 Subject: [PATCH] ar(feat) DPCP-31: Audio Player --- src/molecules/02_AudioPlayer/AudioPlayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();