don't display unrealized pnl until breakEven price exists

This commit is contained in:
Tyler Shipe 2021-12-17 13:46:03 -05:00
parent e033d84a5d
commit d9f26f58ab
1 changed files with 5 additions and 1 deletions

View File

@ -200,7 +200,11 @@ const PositionsTable = () => {
: '--'}
</Td>
<Td>
<PnlText pnl={unrealizedPnl} />
{breakEvenPrice ? (
<PnlText pnl={unrealizedPnl} />
) : (
'--'
)}
</Td>
{showMarketCloseModal ? (
<MarketCloseModal