remove onChange from effect dependencies
This commit is contained in:
parent
a74aaf4405
commit
b82259d17f
|
@ -38,7 +38,7 @@ const LeverageSlider = ({
|
|||
useEffect(() => {
|
||||
onChange(amount.toString())
|
||||
setValue(amount)
|
||||
}, [amount, onChange])
|
||||
}, [amount])
|
||||
|
||||
const handleSliderChange = (e: ChangeEvent<HTMLInputElement>) => {
|
||||
let target = e.target
|
||||
|
|
Loading…
Reference in New Issue