Skip to content

Commit

Permalink
#207 - clear number of events when clear events button is pressed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rewbs committed Oct 10, 2023
1 parent 87fafdf commit 0aee7e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/AudioWaveform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,9 @@ export function AudioWaveform(props: AudioWaveformProps) {
if (all) {
setManualEvents([]);
}
if (onsetRef.current) {
onsetRef.current.innerText = `${all ? 0 : manualEvents.length } events detected`;
}
}

function offsetEvents(): void {
Expand Down

0 comments on commit 0aee7e5

Please sign in to comment.