Skip to content

Commit

Permalink
Disable sound
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-reis committed Oct 24, 2023
1 parent 50a8575 commit 11b9da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EventMap/EventMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const EventMap = ({ events = [], className, showLines = false, fitBoundsOnLoad =
const [isPlaying, setPlaying] = useState(false);
const [audio] = useState(/*_ => new Audio("/sound.mp3")*/);

useEffect(_ => _ => audio.pause(), [audio]);
useEffect(_ => _ => audio?.pause(), [audio]);

useEffect(_ => {
if(events.length === 0) return;
Expand Down

0 comments on commit 11b9da1

Please sign in to comment.