diff --git a/libs/common-hooks/src/useAvailableChains.ts b/libs/common-hooks/src/useAvailableChains.ts index 4e7c610179..d7e598240e 100644 --- a/libs/common-hooks/src/useAvailableChains.ts +++ b/libs/common-hooks/src/useAvailableChains.ts @@ -3,8 +3,6 @@ import { useMemo } from 'react' import { getAvailableChains } from '@cowprotocol/common-utils' import { SupportedChainId } from '@cowprotocol/cow-sdk' -import { useFeatureFlags } from './useFeatureFlags' - /** * Hook to get a list of SupportedChainId currently available/enabled * @@ -13,13 +11,14 @@ import { useFeatureFlags } from './useFeatureFlags' * Set the flag in this hook. */ export function useAvailableChains(): SupportedChainId[] { - // 1. Load feature flag for chain being enabled - const { isBaseEnabled } = useFeatureFlags() + // // 1. Load feature flag for chain being enabled + // const { isBaseEnabled } = useFeatureFlags() + + // return useMemo( + // // 2. Conditionally build a list of chain ids to exclude + // () => getAvailableChains(isBaseEnabled ? undefined : [SupportedChainId.BASE]), + // [isBaseEnabled], + // ) - return useMemo( - // 2. Conditionally build a list of chain ids to exclude - // () => getAvailableChains(isArbitrumOneEnabled ? undefined : [SupportedChainId.ARBITRUM_ONE]), - () => getAvailableChains(isBaseEnabled ? undefined : [SupportedChainId.BASE]), - [isBaseEnabled], - ) + return getAvailableChains() }