Skip to content

Commit 759615f

Browse files
committed
fix: floor price display
1 parent e0f078c commit 759615f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-offers-list-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function TokenOffersListItem({
6060
: "text-red-500",
6161
)}
6262
>
63-
{offer.floor_difference}%
63+
{parseFloat(offer.floor_difference).toFixed(2)}%
6464
</p>
6565
) : (
6666
"_"

apps/arkmarket/src/components/cells/offer-floor-diff-cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function OfferFloorDiffCell({ offer }: FloorDiffProps) {
1717
offer.floor_difference >= 0 ? "text-green-500" : "text-red-500",
1818
)}
1919
>
20-
{offer.floor_difference}%
20+
{parseFloat(offer.floor_difference).toFixed(2)}%
2121
</p>
2222
) : (
2323
"_"

0 commit comments

Comments
 (0)