Skip to content

Commit

Permalink
fix: Display blank row if no listing price. (Uniswap#5398)
Browse files Browse the repository at this point in the history
Co-authored-by: Padmini Pyapali <[email protected]>
  • Loading branch information
unipadmini and Padmini Pyapali authored Nov 24, 2022
1 parent 4240908 commit aeb636c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/nft/components/collection/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ const InfoContainer = ({ children }: { children: ReactNode }) => {

const TruncatedTextRow = styled(Row)`
padding: 2px;
white-space: nowrap;
white-space: pre;
text-overflow: ellipsis;
display: block;
overflow: hidden;
Expand Down Expand Up @@ -532,11 +532,9 @@ const ProfileNftDetails = ({ asset, hideDetails }: ProfileNftDetailsProps) => {
</TruncatedTextRow>
{asset.susFlag && <Suspicious />}
</Row>
{shouldShowUserListedPrice && (
<TruncatedTextRow className={buttonTextMedium} style={{ color: themeVars.colors.textPrimary }}>
{`${floorFormatter(asset.floor_sell_order_price)} ETH`}
</TruncatedTextRow>
)}
<TruncatedTextRow className={buttonTextMedium} style={{ color: themeVars.colors.textPrimary }}>
{shouldShowUserListedPrice ? `${floorFormatter(asset.floor_sell_order_price)} ETH` : ' '}
</TruncatedTextRow>
</Box>
)
}
Expand Down

0 comments on commit aeb636c

Please sign in to comment.