mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Ensure that priceSlippage fiat amounts are always shown in view-quote.js (#10762)
This commit is contained in:
parent
be0b8a11d8
commit
f7a328a9d9
@ -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…
Reference in New Issue
Block a user