Ensure that priceSlippage fiat amounts are always shown in view-quote.js (#10762)

feature/default_network_editable
Dan J Miller 4 years ago committed by GitHub
parent be0b8a11d8
commit f7a328a9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/pages/swaps/view-quote/view-quote.js

@ -518,9 +518,11 @@ export default function ViewQuote() {
let viewQuotePriceDifferenceComponent = null;
const priceSlippageFromSource = useEthFiatAmount(
usedQuote?.priceSlippage?.sourceAmountInETH || 0,
{ showFiat: true },
);
const priceSlippageFromDestination = useEthFiatAmount(
usedQuote?.priceSlippage?.destinationAmountInETH || 0,
{ showFiat: true },
);
// We cannot present fiat value if there is a calculation error or no slippage

Loading…
Cancel
Save