Replace use of 'destinationAmountInEth' property with 'destinationAmountInETH' (#10500)

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

@ -51,7 +51,7 @@ describe('View Price Quote Difference', function () {
calculationError: '',
bucket: 'low',
sourceAmountInETH: 1,
destinationAmountInEth: 0.9921849150875727,
destinationAmountInETH: 0.9921849150875727,
},
slippage: 2,
sourceTokenInfo: {

@ -510,7 +510,7 @@ export default function ViewQuote() {
usedQuote?.priceSlippage?.sourceAmountInETH || 0,
);
const priceSlippageFromDestination = useEthFiatAmount(
usedQuote?.priceSlippage?.destinationAmountInEth || 0,
usedQuote?.priceSlippage?.destinationAmountInETH || 0,
);
// We cannot present fiat value if there is a calculation error or no slippage

Loading…
Cancel
Save