From eb5f0b7ae03b87254fe993f66b245c2e33c1807b Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Wed, 23 Sep 2020 22:32:05 +0100 Subject: [PATCH] Prettier --- src/optionsMenu/helpers/VUMeter.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/optionsMenu/helpers/VUMeter.tsx b/src/optionsMenu/helpers/VUMeter.tsx index 055639c..ff1268a 100644 --- a/src/optionsMenu/helpers/VUMeter.tsx +++ b/src/optionsMenu/helpers/VUMeter.tsx @@ -30,7 +30,10 @@ export function VUMeter(props: VUMeterProps) { useEffect(() => { const animate = () => { if (!isMic || isMicOpen) { - const result = audioEngine.getLevels(props.source, props.stereo ? props.stereo : false); + const result = audioEngine.getLevels( + props.source, + props.stereo ? props.stereo : false + ); setPeakL(result[0]); if (props.stereo) { setPeakR(result[1]); @@ -120,7 +123,6 @@ export function VUMeter(props: VUMeterProps) { } }, [peakL, peakR, props.range, props.greenRange, props.stereo]); - const { value, range, greenRange, source, ...rest } = props; // Can't put boolean values into HTML DOM.