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 7cec21c commit 91a4e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/molecules/02_AudioPlayer/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const HAudioPlayer = function ({

useEffect(() => {
const handlePlay = handleStatus('playing', {
title: audioElement.current?.getAttribute('data-title'),
title: audioElement.current?.getAttribute('data-title') || prompt,
});
const handleStop = handleStatus('stopped', {});
audioElement.current?.addEventListener('play', handlePlay);
Expand Down Expand Up @@ -143,7 +143,7 @@ export const HAudioPlayer = function ({
controls={nativeControls}
ref={audioElement}
autoPlay
preload
preload="none"
>
{tracks.map((file) => (
<>
Expand Down

0 comments on commit 91a4e72

Please sign in to comment.