diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index f4bac768d..2cb076670 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -617,6 +617,11 @@ export function getIsMainnet(state) { return chainId === CHAIN_IDS.MAINNET; } +export function getIsLineaMainnet(state) { + const chainId = getCurrentChainId(state); + return chainId === CHAIN_IDS.LINEA_MAINNET; +} + export function getIsTestnet(state) { const chainId = getCurrentChainId(state); return TEST_CHAINS.includes(chainId); @@ -653,12 +658,13 @@ export function getDisabledRpcMethodPreferences(state) { export function getShouldShowFiat(state) { const isMainNet = getIsMainnet(state); + const isLineaMainNet = getIsLineaMainnet(state); const isCustomNetwork = getIsCustomNetwork(state); const conversionRate = getConversionRate(state); const useCurrencyRateCheck = getUseCurrencyRateCheck(state); const { showFiatInTestnets } = getPreferences(state); return Boolean( - (isMainNet || isCustomNetwork || showFiatInTestnets) && + (isMainNet || isLineaMainNet || isCustomNetwork || showFiatInTestnets) && useCurrencyRateCheck && conversionRate, );