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

feature/default_network_editable
ryanml 2 years ago committed by GitHub
parent 3a5616e807
commit d4de8eae9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui/selectors/selectors.js

@ -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) {

Loading…
Cancel
Save