Skip to content

Commit

Permalink
Merge pull request #226 from rewbs/reset-event-count-on-clear
Browse files Browse the repository at this point in the history
#207 - clear number of events when clear events button is pressed.
  • Loading branch information
rewbs authored Oct 10, 2023
2 parents 87fafdf + 0aee7e5 commit fa7b075
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 fa7b075

Please sign in to comment.