Skip to content

Commit

Permalink
updating character count limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
snmln committed Nov 27, 2024
1 parent eac65d7 commit 1d4d878
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d4d878

Please sign in to comment.