diff --git a/app/components/SliderInput.tsx b/app/components/SliderInput.tsx index ca5e03b..0426fe9 100644 --- a/app/components/SliderInput.tsx +++ b/app/components/SliderInput.tsx @@ -33,14 +33,13 @@ const SliderInput: React.FC = ({ const handleSliderChange = (v: number) => { if (!isNaN(clamp(v, min, max, precision))) onValueChange(v) - setTextValue(value.toString()) + setTextValue(v.toString()) } const handleTextInputChange = (t: string) => { let v = 0 setTextValue(t) v = parseFloat(t) - if (!isNaN(v)) onValueChange(clamp(v, min, max, precision)) }