only show unsettled token with balance

This commit is contained in:
saml33 2022-12-19 15:28:06 +11:00
parent aef25cfffa
commit 12126027f7
1 changed files with 16 additions and 12 deletions

View File

@ -162,18 +162,22 @@ const UnsettledTrades = ({
</Td>
<Td className="text-right font-mono">
<div className="flex justify-end">
{unsettledSpotBalances[mktAddress].base ? (
<div>
{unsettledSpotBalances[mktAddress].base || 0.0}{' '}
{unsettledSpotBalances[mktAddress].base}{' '}
<span className="font-body tracking-wide text-th-fgd-4">
{base}
</span>
</div>
) : null}
{unsettledSpotBalances[mktAddress].quote ? (
<div className="ml-4">
{unsettledSpotBalances[mktAddress].quote || 0.0}{' '}
{unsettledSpotBalances[mktAddress].quote}{' '}
<span className="font-body tracking-wide text-th-fgd-4">
{quote}
</span>
</div>
) : null}
</div>
</Td>
<Td>