Skip to content

Commit

Permalink
fix: display positive percentage differences on trade quotes (#5135)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture authored and 0xApotheosis committed Aug 22, 2023
1 parent bb64ca5 commit 7490aff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const TradeQuoteLoaded: React.FC<TradeQuoteLoadedProps> = ({
symbol={buyAsset?.symbol ?? ''}
color={isBest ? greenColor : 'inherit'}
/>
{!isBest && hasAmountWithPositiveReceive && quoteDifferenceDecimalPercentage > 0 && (
{!isBest && hasAmountWithPositiveReceive && quoteDifferenceDecimalPercentage !== 0 && (
<Amount.Percent
value={-quoteDifferenceDecimalPercentage}
prefix='('
Expand Down

0 comments on commit 7490aff

Please sign in to comment.