diff --git a/src/components/Layout/Header/ActionCenter/components/AppUpdateActionCard.tsx b/src/components/Layout/Header/ActionCenter/components/AppUpdateActionCard.tsx index 35d4726414a..ae19c30f29d 100644 --- a/src/components/Layout/Header/ActionCenter/components/AppUpdateActionCard.tsx +++ b/src/components/Layout/Header/ActionCenter/components/AppUpdateActionCard.tsx @@ -6,7 +6,7 @@ import { useTranslate } from 'react-polyglot' import { ActionCard } from './ActionCard' -import UpdateIcon from '@/assets/update-icon.svg' +import UpdateIcon from '@/assets/update-icon.svg?url' import { Text } from '@/components/Text/Text' import { formatSmartDate } from '@/lib/utils/time' import type { AppUpdateAction } from '@/state/slices/actionSlice/types' diff --git a/src/pages/Markets/components/MarketsRow.tsx b/src/pages/Markets/components/MarketsRow.tsx index c8bb5a6c7e8..b51e58040ff 100644 --- a/src/pages/Markets/components/MarketsRow.tsx +++ b/src/pages/Markets/components/MarketsRow.tsx @@ -80,17 +80,22 @@ export const MarketsRow: React.FC = ({ (params.category && sortOptionsByCategory[params.category]?.[0]) ?? SortOptionsKeys.Volume, ) const isArbitrumNovaEnabled = useAppSelector(state => selectFeatureFlag(state, 'ArbitrumNova')) + const isSuiEnabled = useAppSelector(state => selectFeatureFlag(state, 'Sui')) + const isPlasmaEnabled = useAppSelector(state => selectFeatureFlag(state, 'Plasma')) + const isHyperEvmEnabled = useAppSelector(state => selectFeatureFlag(state, 'HyperEvm')) const [isSmallerThanLg] = useMediaQuery(`(max-width: ${breakpoints.lg})`) const chainIds = useMemo(() => { - if (!supportedChainIds) - return Object.values(KnownChainIds).filter(chainId => { - if (!isArbitrumNovaEnabled && chainId === KnownChainIds.ArbitrumNovaMainnet) return false - return true - }) - - return supportedChainIds - }, [isArbitrumNovaEnabled, supportedChainIds]) + const baseChainIds = supportedChainIds ?? Object.values(KnownChainIds) + + return baseChainIds.filter(chainId => { + if (!isArbitrumNovaEnabled && chainId === KnownChainIds.ArbitrumNovaMainnet) return false + if (!isSuiEnabled && chainId === KnownChainIds.SuiMainnet) return false + if (!isPlasmaEnabled && chainId === KnownChainIds.PlasmaMainnet) return false + if (!isHyperEvmEnabled && chainId === KnownChainIds.HyperEvmMainnet) return false + return true + }) + }, [supportedChainIds, isArbitrumNovaEnabled, isSuiEnabled, isPlasmaEnabled, isHyperEvmEnabled]) const Title = useMemo(() => { if (!title) return null