Skip to content

Commit

Permalink
Fix market Long Position
Browse files Browse the repository at this point in the history
  • Loading branch information
lq0-github committed Jan 13, 2025
1 parent e802e04 commit a1fe346
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions screens/MarginTrading/components/MarketTrading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,15 +456,15 @@ function TableBody({
<div className="flex flex-col items-start ml-3">
<div className="flex items-end">{beautifyPrice(formattedMarginPosition)}</div>
<span className="text-xs text-gray-300">
{beautifyPrice(calculateAndFormatUSD(formattedMarginPosition, item.price?.usd))}
{beautifyPrice(Number(formattedMarginPosition) * Number(item.price?.usd), true)}
</span>
</div>
</div>
<div className="col-span-1 flex flex-col justify-center pl-6 xl:pl-14 whitespace-nowrap">
<div className="flex flex-col items-start ml-3">
<div className="flex items-end">{beautifyPrice(formattedMarginBalance)}</div>
<span className="text-xs text-gray-300">
{beautifyPrice(calculateAndFormatUSD(formattedMarginBalance, item.price?.usd))}
{beautifyPrice(Number(formattedMarginBalance) * Number(item.price?.usd), true)}
</span>
</div>
</div>
Expand Down Expand Up @@ -570,7 +570,8 @@ function TableBodyMobile({
<span className="text-xs text-gray-300 ml-1">
(
{beautifyPrice(
calculateAndFormatUSD(formattedMarginPosition, item.price?.usd),
Number(formattedMarginPosition) * Number(item.price?.usd),
true,
)}
)
</span>
Expand All @@ -583,7 +584,8 @@ function TableBodyMobile({
<span className="text-xs text-gray-300 ml-1">
(
{beautifyPrice(
calculateAndFormatUSD(formattedMarginBalance, item.price?.usd),
Number(formattedMarginBalance) * Number(item.price?.usd),
true,
)}
)
</span>
Expand Down

0 comments on commit a1fe346

Please sign in to comment.