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

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

This commit is contained in:
Dan J Miller 2021-02-23 13:22:04 -03:30 committed by GitHub
parent 9c4af85664
commit e7a0ca134b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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