From e7a0ca134b44e159429e7a36815acc938c23f92c Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Tue, 23 Feb 2021 13:22:04 -0330 Subject: [PATCH] Replace use of 'destinationAmountInEth' property with 'destinationAmountInETH' (#10500) --- .../swaps/view-quote/tests/view-quote-price-difference.test.js | 2 +- ui/app/pages/swaps/view-quote/view-quote.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/pages/swaps/view-quote/tests/view-quote-price-difference.test.js b/ui/app/pages/swaps/view-quote/tests/view-quote-price-difference.test.js index ae41cd794..437c67eea 100644 --- a/ui/app/pages/swaps/view-quote/tests/view-quote-price-difference.test.js +++ b/ui/app/pages/swaps/view-quote/tests/view-quote-price-difference.test.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: { diff --git a/ui/app/pages/swaps/view-quote/view-quote.js b/ui/app/pages/swaps/view-quote/view-quote.js index ca2bf13ed..c553be9d9 100644 --- a/ui/app/pages/swaps/view-quote/view-quote.js +++ b/ui/app/pages/swaps/view-quote/view-quote.js @@ -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