diff --git a/ts/components/CompositionRecordingDraft.tsx b/ts/components/CompositionRecordingDraft.tsx index b5f15ddf1a..25c7c7a955 100644 --- a/ts/components/CompositionRecordingDraft.tsx +++ b/ts/components/CompositionRecordingDraft.tsx @@ -137,9 +137,10 @@ function SizedWaveformScrubber({ onScrub, width, }: SizedWaveformScrubberProps) { - const handleCorrupted = () => { + const handleCorrupted = useCallback(() => { log.warn('SizedWaveformScrubber: audio corrupted'); - }; + }, []); + const { peaks, duration } = useComputePeaks({ audioUrl, activeDuration,