From 759615f6f7b34924141747aed1b3e795481e05da Mon Sep 17 00:00:00 2001 From: Valentin Dosimont Date: Sat, 7 Dec 2024 07:50:12 +0100 Subject: [PATCH] fix: floor price display --- .../[tokenId]/components/token-offers-list-item.tsx | 2 +- apps/arkmarket/src/components/cells/offer-floor-diff-cell.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-offers-list-item.tsx b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-offers-list-item.tsx index b89499f0..dfaa6b0d 100644 --- a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-offers-list-item.tsx +++ b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-offers-list-item.tsx @@ -60,7 +60,7 @@ export default function TokenOffersListItem({ : "text-red-500", )} > - {offer.floor_difference}% + {parseFloat(offer.floor_difference).toFixed(2)}%

) : ( "_" diff --git a/apps/arkmarket/src/components/cells/offer-floor-diff-cell.tsx b/apps/arkmarket/src/components/cells/offer-floor-diff-cell.tsx index cc97a491..b71fa559 100644 --- a/apps/arkmarket/src/components/cells/offer-floor-diff-cell.tsx +++ b/apps/arkmarket/src/components/cells/offer-floor-diff-cell.tsx @@ -17,7 +17,7 @@ export default function OfferFloorDiffCell({ offer }: FloorDiffProps) { offer.floor_difference >= 0 ? "text-green-500" : "text-red-500", )} > - {offer.floor_difference}% + {parseFloat(offer.floor_difference).toFixed(2)}%

) : ( "_"