fix perp health impact when no base size
This commit is contained in:
parent
3c2b2e6f57
commit
4b86b28f19
|
@ -53,12 +53,12 @@ const TradeSummary = ({
|
|||
? mangoAccount.simHealthRatioWithPerpAskUiChanges(
|
||||
group,
|
||||
selectedMarket.perpMarketIndex,
|
||||
parseFloat(tradeForm.baseSize)
|
||||
parseFloat(tradeForm.baseSize) || 0
|
||||
)
|
||||
: mangoAccount.simHealthRatioWithPerpBidUiChanges(
|
||||
group,
|
||||
selectedMarket.perpMarketIndex,
|
||||
parseFloat(tradeForm.baseSize)
|
||||
parseFloat(tradeForm.baseSize) || 0
|
||||
)
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue