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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,