Skip to content

Commit

Permalink
slider fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Mar 18, 2024
1 parent ad83c20 commit aac62d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/StakeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function StakeForm({ token: selectedToken }: StakeFormProps) {
<p className="mb-2 font-bold text-th-fgd-1">{leverage}x</p>
</div>
<LeverageSlider
startingValue={1}
startingValue={0}
leverageMax={leverageMax}
onChange={changeLeverage}
step={0.01}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/LeverageSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const LeverageSlider = ({
onChange: (x: number) => void
step: number
}) => {
const [value, setValue] = useState([0, startingValue])
const [value, setValue] = useState([1, startingValue])
const prevMax = usePrevious(leverageMax)

// if leverageMax changes, force rerender
Expand Down

0 comments on commit aac62d7

Please sign in to comment.