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:
parent
3a5616e807
commit
d4de8eae9e
@ -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…
Reference in New Issue
Block a user