Commit 875171e3 authored by Mike Grabowski's avatar Mike Grabowski Committed by GitHub

feat: handle 0 in banner card (#5385)

feat: fix web-2411
parent 8e9a20a6
......@@ -204,14 +204,13 @@ export const MarketplaceRow = ({ marketplace, floorInEth, listings }: Marketplac
</TableElement>
<TableElement>
<ThemedText.BodySmall color="textSecondary">
{floorInEth !== undefined
? formatNumberOrString(floorInEth, NumberType.NFTTokenFloorPriceTrailingZeros)
: '-'}{' '}
ETH
{Number(floorInEth) > 0
? `${formatNumberOrString(floorInEth, NumberType.NFTTokenFloorPriceTrailingZeros)} ETH`
: '-'}
</ThemedText.BodySmall>
</TableElement>
<TableElement>
<ThemedText.BodySmall color="textSecondary">{listings ?? '-'}</ThemedText.BodySmall>
<ThemedText.BodySmall color="textSecondary">{Number(listings) > 0 ? listings : 'None'}</ThemedText.BodySmall>
</TableElement>
</>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment