1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

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

This commit is contained in:
Dan J Miller 2021-03-30 12:55:29 -02:30 committed by GitHub
parent be0b8a11d8
commit f7a328a9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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