|
|
|
@ -47,10 +47,13 @@ const AssetList = ({ onClickAsset }) => { |
|
|
|
|
numberOfDecimals: secondaryNumberOfDecimals, |
|
|
|
|
} = useUserPreferencedCurrency(SECONDARY, { ethNumberOfDecimals: 4 }) |
|
|
|
|
|
|
|
|
|
const [primaryCurrencyDisplay] = useCurrencyDisplay(selectedAccountBalance, { |
|
|
|
|
numberOfDecimals: primaryNumberOfDecimals, |
|
|
|
|
currency: primaryCurrency, |
|
|
|
|
}) |
|
|
|
|
const [, primaryCurrencyProperties] = useCurrencyDisplay( |
|
|
|
|
selectedAccountBalance, |
|
|
|
|
{ |
|
|
|
|
numberOfDecimals: primaryNumberOfDecimals, |
|
|
|
|
currency: primaryCurrency, |
|
|
|
|
}, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
const [secondaryCurrencyDisplay] = useCurrencyDisplay( |
|
|
|
|
selectedAccountBalance, |
|
|
|
@ -65,7 +68,8 @@ const AssetList = ({ onClickAsset }) => { |
|
|
|
|
<AssetListItem |
|
|
|
|
onClick={() => onClickAsset(nativeCurrency)} |
|
|
|
|
data-testid="wallet-balance" |
|
|
|
|
primary={primaryCurrencyDisplay} |
|
|
|
|
primary={primaryCurrencyProperties.value} |
|
|
|
|
tokenSymbol={primaryCurrencyProperties.suffix} |
|
|
|
|
secondary={showFiat ? secondaryCurrencyDisplay : undefined} |
|
|
|
|
/> |
|
|
|
|
<TokenList |
|
|
|
|