From 1d4d878020d084e274ba347ac4adc9c7b1d08d17 Mon Sep 17 00:00:00 2001 From: snmln Date: Wed, 27 Nov 2024 14:14:27 -0500 Subject: [PATCH] updating character count limitation --- .../components/datasets/colorRangeSlider/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/components/exploration/components/datasets/colorRangeSlider/index.tsx b/app/scripts/components/exploration/components/datasets/colorRangeSlider/index.tsx index 7b02652a7..f706be6f1 100644 --- a/app/scripts/components/exploration/components/datasets/colorRangeSlider/index.tsx +++ b/app/scripts/components/exploration/components/datasets/colorRangeSlider/index.tsx @@ -117,12 +117,12 @@ export function ColorRangeSlider({ const minCharacterCount = minVal.toString().length + 1; let updatedDisplay; - maxCharacterCount <= 6 + maxCharacterCount <= 7 ? (updatedDisplay = maxVal) : (updatedDisplay = maxVal.toExponential()); maxValRef.current.display = updatedDisplay; - minCharacterCount <= 6 + minCharacterCount <= 7 ? (updatedDisplay = minVal) : (updatedDisplay = minVal.toExponential()); minValRef.current.display = updatedDisplay;