Skip to content

Commit

Permalink
ar(feat) DPCP-31: Audio Player
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 4, 2024
1 parent 6c88075 commit d20bc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/molecules/02_AudioPlayer/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d20bc56

Please sign in to comment.