only display TradePrice usdcPrice if available (#2613)
This commit is contained in:
parent
e4b727f6f0
commit
0b8afcff41
@ -48,9 +48,11 @@ export default function TradePrice({ price, showInverted, setShowInverted }: Tra
|
||||
<Text fontWeight={500} fontSize={14} color={theme.text1}>
|
||||
{text}
|
||||
</Text>{' '}
|
||||
<TYPE.darkGray>
|
||||
<Trans>(${usdcPrice?.toSignificant(6, { groupSeparator: ',' })})</Trans>
|
||||
</TYPE.darkGray>
|
||||
{usdcPrice && (
|
||||
<TYPE.darkGray>
|
||||
<Trans>(${usdcPrice.toSignificant(6, { groupSeparator: ',' })})</Trans>
|
||||
</TYPE.darkGray>
|
||||
)}
|
||||
</StyledPriceContainer>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user