high side bade if no perp position
This commit is contained in:
parent
17d73fc3cf
commit
6d5dbd8265
|
@ -18,7 +18,7 @@ const DayHighLow = ({ high, low, latest }) => {
|
|||
</div>
|
||||
<div className="flex items-center">
|
||||
<div className="pr-2 text-th-fgd-1 text-xs">
|
||||
{formatUsdValue(low?.baseOraclePrice)}
|
||||
{low?.baseOraclePrice ? formatUsdValue(low.baseOraclePrice) : null}
|
||||
</div>
|
||||
<div className="h-1.5 flex rounded bg-th-bkg-3 w-24">
|
||||
<div
|
||||
|
@ -29,7 +29,7 @@ const DayHighLow = ({ high, low, latest }) => {
|
|||
></div>
|
||||
</div>
|
||||
<div className="pl-2 text-th-fgd-1 text-xs">
|
||||
{formatUsdValue(high?.baseOraclePrice)}
|
||||
{high?.baseOraclePrice ? formatUsdValue(high.baseOraclePrice) : null}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -112,7 +112,7 @@ export default function MarketPosition() {
|
|||
side={perpAccount.basePosition.gt(ZERO_BN) ? 'long' : 'short'}
|
||||
/>
|
||||
) : (
|
||||
'--'
|
||||
'-'
|
||||
)}
|
||||
</div>
|
||||
<div className={`flex justify-between pt-2 pb-2`}>
|
||||
|
|
|
@ -214,13 +214,17 @@ const PositionsTable = () => {
|
|||
</div>
|
||||
</Td>
|
||||
<Td className="px-2 py-2 whitespace-nowrap text-sm text-th-fgd-1">
|
||||
<SideBadge
|
||||
side={
|
||||
perpAccount.basePosition.gt(ZERO_BN)
|
||||
? 'long'
|
||||
: 'short'
|
||||
}
|
||||
/>
|
||||
{!perpAccount.basePosition.eq(ZERO_BN) ? (
|
||||
<SideBadge
|
||||
side={
|
||||
perpAccount.basePosition.gt(ZERO_BN)
|
||||
? 'long'
|
||||
: 'short'
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</Td>
|
||||
<Td className="px-2 py-2 whitespace-nowrap text-sm text-th-fgd-1">
|
||||
{perpMarket.baseLotsToNumber(
|
||||
|
|
Loading…
Reference in New Issue