Skip to content

Commit

Permalink
Show perps on mainnet (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltom authored Jul 11, 2022
1 parent 1984b22 commit 5699244
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ type PagesProps = {
hrefExternal?: boolean;
};

const showPerps = !isMainnet || isStaging;
// TODO: Delete this once we go live, we may need it after the competition
const showPerps = true; // !isMainnet || isStaging;

const showZero = isMainnet || isStaging;

export const DefaultHeaderComponent: React.FC = () => {
Expand Down
6 changes: 4 additions & 2 deletions src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import React, { useEffect } from 'react';
import { Helmet } from 'react-helmet-async';
import { Switch, Route, BrowserRouter, Redirect } from 'react-router-dom';

import { currentNetwork, isMainnet, isStaging } from 'utils/classifiers';
import { currentNetwork, isMainnet } from 'utils/classifiers';
import { useAppTheme } from './hooks/app/useAppTheme';
import { useMaintenance } from './hooks/useMaintenance';
import { useInjectReducer, useInjectSaga } from 'utils/redux-injectors';
Expand Down Expand Up @@ -54,7 +54,9 @@ import { PerpetualPageLoadable } from './pages/PerpetualPage/Loadable';
import { CompetitionPage } from './pages/PerpetualPage/components/CompetitionPage';

const title = !isMainnet ? `Sovryn ${currentNetwork}` : 'Sovryn';
const showPerps = !isMainnet || isStaging;

// TODO: Delete this once we go live, we may need it after the competition
const showPerps = true; // !isMainnet || isStaging;

export function App() {
useAppTheme();
Expand Down

0 comments on commit 5699244

Please sign in to comment.