don't show base on unsettled table

This commit is contained in:
tjs 2022-12-12 00:37:49 -05:00
parent fce0f5a3f6
commit b3a494fae1
1 changed files with 15 additions and 15 deletions

View File

@ -144,8 +144,7 @@ const UnsettledTrades = ({
<thead>
<TrHead>
<Th className="bg-th-bkg-1 text-left">{t('market')}</Th>
<Th className="bg-th-bkg-1 text-right">{t('trade:base')}</Th>
<Th className="bg-th-bkg-1 text-right">{t('trade:quote')}</Th>
<Th className="bg-th-bkg-1 text-right">{t('trade:amount')}</Th>
<Th className="bg-th-bkg-1 text-right" />
</TrHead>
</thead>
@ -163,16 +162,20 @@ const UnsettledTrades = ({
<TableMarketName market={market} />
</Td>
<Td className="text-right font-mono">
{unsettledSpotBalances[mktAddress].base || 0.0}{' '}
<span className="font-body tracking-wide text-th-fgd-4">
{base}
</span>
</Td>
<Td className="text-right font-mono">
{unsettledSpotBalances[mktAddress].quote || 0.0}{' '}
<span className="font-body tracking-wide text-th-fgd-4">
{quote}
</span>
<div className="flex">
<div>
{unsettledSpotBalances[mktAddress].base || 0.0}{' '}
<span className="font-body tracking-wide text-th-fgd-4">
{base}
</span>
</div>
<div>
{unsettledSpotBalances[mktAddress].quote || 0.0}{' '}
<span className="font-body tracking-wide text-th-fgd-4">
{quote}
</span>
</div>
</div>
</Td>
<Td>
<div className="flex justify-end">
@ -202,9 +205,6 @@ const UnsettledTrades = ({
<Td>
<TableMarketName market={market} />
</Td>
<Td className="text-right font-mono">
<span></span>
</Td>
<Td className="text-right font-mono">
{position.getEquityUi(group, market)}
</Td>