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
? `${getValueFromWeiHex({
value,
fromCurrency: nativeCurrency,
toCurrency: nativeCurrency,
fromCurrency: 'ETH',
toCurrency: 'ETH',
conversionRate,
numberOfDecimals: 6,
})} ${nativeCurrency}`
: getEthConversionFromWeiHex({
value,
fromCurrency: nativeCurrency,
fromCurrency: 'ETH',
conversionRate,
numberOfDecimals: 3,
})