Fixed render loop on voice notes draft

This commit is contained in:
Alvaro
2023-03-06 10:30:03 -07:00
committed by GitHub
parent 5dff1768bd
commit 546be943ee

View File

@@ -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,