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 ...@@ -204,14 +204,13 @@ export const MarketplaceRow = ({ marketplace, floorInEth, listings }: Marketplac
</TableElement> </TableElement>
<TableElement> <TableElement>
<ThemedText.BodySmall color="textSecondary"> <ThemedText.BodySmall color="textSecondary">
{floorInEth !== undefined {Number(floorInEth) > 0
? formatNumberOrString(floorInEth, NumberType.NFTTokenFloorPriceTrailingZeros) ? `${formatNumberOrString(floorInEth, NumberType.NFTTokenFloorPriceTrailingZeros)} ETH`
: '-'}{' '} : '-'}
ETH
</ThemedText.BodySmall> </ThemedText.BodySmall>
</TableElement> </TableElement>
<TableElement> <TableElement>
<ThemedText.BodySmall color="textSecondary">{listings ?? '-'}</ThemedText.BodySmall> <ThemedText.BodySmall color="textSecondary">{Number(listings) > 0 ? listings : 'None'}</ThemedText.BodySmall>
</TableElement> </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