Commit aeb636cf authored by unipadmini's avatar unipadmini Committed by GitHub

fix: Display blank row if no listing price. (#5398)

Co-authored-by: default avatarPadmini Pyapali <padminipyapali@Padminis-MacBook-Pro.local>
parent 4240908c
...@@ -490,7 +490,7 @@ const InfoContainer = ({ children }: { children: ReactNode }) => { ...@@ -490,7 +490,7 @@ const InfoContainer = ({ children }: { children: ReactNode }) => {
const TruncatedTextRow = styled(Row)` const TruncatedTextRow = styled(Row)`
padding: 2px; padding: 2px;
white-space: nowrap; white-space: pre;
text-overflow: ellipsis; text-overflow: ellipsis;
display: block; display: block;
overflow: hidden; overflow: hidden;
...@@ -532,11 +532,9 @@ const ProfileNftDetails = ({ asset, hideDetails }: ProfileNftDetailsProps) => { ...@@ -532,11 +532,9 @@ const ProfileNftDetails = ({ asset, hideDetails }: ProfileNftDetailsProps) => {
</TruncatedTextRow> </TruncatedTextRow>
{asset.susFlag && <Suspicious />} {asset.susFlag && <Suspicious />}
</Row> </Row>
{shouldShowUserListedPrice && ( <TruncatedTextRow className={buttonTextMedium} style={{ color: themeVars.colors.textPrimary }}>
<TruncatedTextRow className={buttonTextMedium} style={{ color: themeVars.colors.textPrimary }}> {shouldShowUserListedPrice ? `${floorFormatter(asset.floor_sell_order_price)} ETH` : ' '}
{`${floorFormatter(asset.floor_sell_order_price)} ETH`} </TruncatedTextRow>
</TruncatedTextRow>
)}
</Box> </Box>
) )
} }
......
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