Merge pull request #201 from blockworks-foundation/fix-close-borrow-string
fix NaN in closeBorrowString
This commit is contained in:
commit
c7eb72f160
|
@ -482,7 +482,7 @@ export default function AdvancedTradeForm({
|
|||
const closeBorrowString =
|
||||
percentToClose(baseSize, roundedBorrows) > 100
|
||||
? t('close-open-long', {
|
||||
size: (+baseSize - roundedDeposits).toFixed(sizeDecimalCount),
|
||||
size: (+baseSize - roundedBorrows).toFixed(sizeDecimalCount),
|
||||
symbol: marketConfig.baseSymbol,
|
||||
})
|
||||
: `${percentToClose(baseSize, roundedBorrows).toFixed(0)}% ${t(
|
||||
|
|
Loading…
Reference in New Issue