fix perp health impact when no base size

This commit is contained in:
saml33 2023-04-04 15:01:41 +10:00
parent 3c2b2e6f57
commit 4b86b28f19
1 changed files with 2 additions and 2 deletions

View File

@ -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) {