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

Show fiat conversion by default on custom networks (#16132)

This commit is contained in:
ryanml 2022-10-11 07:56:15 -07:00 committed by GitHub
parent 3a5616e807
commit d4de8eae9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,9 +543,12 @@ export function getShowTestNetworks(state) {
export function getShouldShowFiat(state) {
const isMainNet = getIsMainnet(state);
const isCustomNetwork = getIsCustomNetwork(state);
const conversionRate = getConversionRate(state);
const { showFiatInTestnets } = getPreferences(state);
return Boolean((isMainNet || showFiatInTestnets) && conversionRate);
return Boolean(
(isMainNet || isCustomNetwork || showFiatInTestnets) && conversionRate,
);
}
export function getShouldHideZeroBalanceTokens(state) {