From de9774549b72de92fab302930ea16cdea843ef58 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 24 Sep 2020 23:27:47 +0100 Subject: [PATCH] Fix stereo boolean dom error differently. --- src/optionsMenu/helpers/VUMeter.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/optionsMenu/helpers/VUMeter.tsx b/src/optionsMenu/helpers/VUMeter.tsx index ff1268a..97c07d1 100644 --- a/src/optionsMenu/helpers/VUMeter.tsx +++ b/src/optionsMenu/helpers/VUMeter.tsx @@ -123,10 +123,7 @@ 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. - delete rest.stereo; + const { value, range, greenRange, source, stereo, ...rest } = props; return ; }