remove onChange from effect dependencies

This commit is contained in:
saml33 2022-08-18 13:17:22 +10:00
parent a74aaf4405
commit b82259d17f
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ const LeverageSlider = ({
useEffect(() => {
onChange(amount.toString())
setValue(amount)
}, [amount, onChange])
}, [amount])
const handleSliderChange = (e: ChangeEvent<HTMLInputElement>) => {
let target = e.target