fix bug in fiat value price impact display

This commit is contained in:
Moody Salem 2021-05-12 11:56:04 -05:00
parent 3aa045303a
commit 285e4f28f5
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -27,7 +27,7 @@ export function FiatValue({
{fiatValue ? '~' : ''}$
<HoverInlineText text={fiatValue ? Number(fiatValue?.toSignificant(6)).toLocaleString('en') : '-'} />{' '}
{priceImpact ? (
<span style={{ color: priceImpactColor }}> ({priceImpact.multiply(-100).toSignificant(3)}%)</span>
<span style={{ color: priceImpactColor }}> ({priceImpact.multiply(-1).toSignificant(3)}%)</span>
) : null}
</TYPE.body>
)