1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Standardize transaction activity conversion's currency to 'ETH' (#8934)

This commit is contained in:
Thomas Huang 2020-07-07 15:15:42 -07:00 committed by GitHub
parent 14416a796a
commit 15d713f0ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,14 +74,14 @@ export default class TransactionActivityLog extends PureComponent {
const ethValue = index === 0 const ethValue = index === 0
? `${getValueFromWeiHex({ ? `${getValueFromWeiHex({
value, value,
fromCurrency: nativeCurrency, fromCurrency: 'ETH',
toCurrency: nativeCurrency, toCurrency: 'ETH',
conversionRate, conversionRate,
numberOfDecimals: 6, numberOfDecimals: 6,
})} ${nativeCurrency}` })} ${nativeCurrency}`
: getEthConversionFromWeiHex({ : getEthConversionFromWeiHex({
value, value,
fromCurrency: nativeCurrency, fromCurrency: 'ETH',
conversionRate, conversionRate,
numberOfDecimals: 3, numberOfDecimals: 3,
}) })