diff --git a/src/routes/safe/components/Balances/dataFetcher.js b/src/routes/safe/components/Balances/dataFetcher.js index bdfb8f6a..e66543e3 100644 --- a/src/routes/safe/components/Balances/dataFetcher.js +++ b/src/routes/safe/components/Balances/dataFetcher.js @@ -21,13 +21,17 @@ export type BalanceRow = SortRow // eslint-disable-next-line max-len const getTokenPriceInCurrency = (token: Token, currencySelected: AVAILABLE_CURRENCIES, currencyValues: List): string => { // eslint-disable-next-line no-restricted-syntax - for (const tokenPriceIterator of currencyValues) { const { tokenAddress, balanceInSelectedCurrency, currencyName } = tokenPriceIterator if (token.address === tokenAddress && currencySelected === currencyName) { const balance = balanceInSelectedCurrency ? parseFloat(balanceInSelectedCurrency, 10).toFixed(2) : balanceInSelectedCurrency return `${balance} ${currencySelected}` } + // ETH token + if (token.address === '0x000' && !tokenAddress) { + const balance = balanceInSelectedCurrency ? parseFloat(balanceInSelectedCurrency, 10).toFixed(2) : balanceInSelectedCurrency + return `${balance} ${currencySelected}` + } } return null }