Skip to content

Commit

Permalink
set max slider point to 50%
Browse files Browse the repository at this point in the history
  • Loading branch information
oshioked committed Dec 7, 2022
1 parent 134bc82 commit f2fdccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/BorrowForm/BorrowForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ const BorrowForm = (props: BorrowProps) => {
minAvailableValue={borrowedValue}
maxSafePosition={0.3 - borrowedValue / 1000}
dangerPosition={0.45 - borrowedValue / 1000}
maxAvailablePosition={collateralFactor}
maxAvailablePosition={0.5}
onChange={handleSliderChange}
labels={[0, 25, 50]}
/>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion components/HoneySlider/utlls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const getPositionedLabels = ({
left: 'initial',
right: '0',
transform: 'initial',
display: lastLabelValue < 1 ? 'none' : 'initial'
display: lastLabelValue < 1 && !labels.length ? 'none' : 'initial'
}
: {},
label: fpr(Math.round(label))
Expand Down

0 comments on commit f2fdccc

Please sign in to comment.