fix NaN under slider on perp side

This commit is contained in:
Tyler Shipe 2021-08-24 10:30:15 -04:00
parent 325b6c2424
commit d39e52de76
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ export default function LeverageSlider({
const closeBorrowString =
percentToClose(value, roundedBorrows) > 100
? '100% Close Position + Leverage'
: `${percentToClose(value, roundedDeposits).toFixed(2)}% Close Position`
: `${percentToClose(value, roundedBorrows).toFixed(2)}% Close Position`
const setMaxLeverage = function () {
onChange(Math.round(max / step) * step)