Skip to content

Commit

Permalink
FRO-43: change flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeq93 committed Sep 21, 2023
1 parent 78bc874 commit 88c7268
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
2 changes: 1 addition & 1 deletion src/components/MarketSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<TextField
Expand Down
2 changes: 1 addition & 1 deletion src/utils/marketsAndNetworksConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const networkConfigs = Object.keys(_networkConfigs).reduce((acc, value) =
* Fork markets are generated for all markets on the underlying base chain.
*/
export const marketsData = Object.keys(_marketsData)
.filter((m) => 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 (
Expand Down

0 comments on commit 88c7268

Please sign in to comment.