diff --git a/custom.d.ts b/custom.d.ts index 21aa2cdee..d8b7b501d 100644 --- a/custom.d.ts +++ b/custom.d.ts @@ -16,6 +16,6 @@ namespace NodeJS { NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: string; NEXT_PUBLIC_VPN_PROTECTION: string; NEXT_PUBLIC_DISABLE_SDAI_MARKET?: '1' | '0'; - NEXT_PUBLIC_ENABLE_GNOSIS?: '1' | '0'; + NEXT_PUBLIC_ENABLE_MARKET_SWITCHER?: '1' | '0'; } } diff --git a/src/components/MarketSwitcher.tsx b/src/components/MarketSwitcher.tsx index b6cbdd430..c7f99da59 100644 --- a/src/components/MarketSwitcher.tsx +++ b/src/components/MarketSwitcher.tsx @@ -94,7 +94,7 @@ export const MarketSwitcher = () => { const upToLG = useMediaQuery(theme.breakpoints.up('lg')); const downToXSM = useMediaQuery(theme.breakpoints.down('xsm')); - if (process.env.NEXT_PUBLIC_ENABLE_GNOSIS !== '1') return null; + if (process.env.NEXT_PUBLIC_ENABLE_MARKET_SWITCHER !== '1') return null; return ( m !== CustomMarket.gnosis || process.env.NEXT_PUBLIC_ENABLE_GNOSIS === '1') + .filter((m) => m !== CustomMarket.gnosis || process.env.NEXT_PUBLIC_ENABLE_MARKET_SWITCHER === '1') .reduce((acc, value) => { acc[value] = _marketsData[value as keyof typeof CustomMarket]; if (