Skip to content

Commit

Permalink
fix: disable implicit acc creation flow on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
esaminu committed Jan 21, 2022
1 parent 51f9616 commit 34949cd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/frontend/src/components/Routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import styled, { ThemeProvider } from 'styled-components';

import { CREATE_IMPLICIT_ACCOUNT } from '../../../../features';
import TwoFactorVerifyModal from '../components/accounts/two_factor/TwoFactorVerifyModal';
import { IS_MAINNET, PUBLIC_URL, SHOW_PRERELEASE_WARNING } from '../config';
import { IS_MAINNET, PUBLIC_URL, SHOW_PRERELEASE_WARNING, DISABLE_CREATE_ACCOUNT } from '../config';
import ExampleFlag from '../ExampleFlag';
import { Mixpanel } from "../mixpanel/index";
import * as accountActions from '../redux/actions/account';
Expand Down Expand Up @@ -360,7 +360,13 @@ class Routing extends Component {
<Route
exact
path='/create'
render={(props) => accountFound ? <CreateAccountWithRouter {...props} /> : <CreateAccountLanding />}
render={(props) =>
accountFound || !DISABLE_CREATE_ACCOUNT ? (
<CreateAccountWithRouter {...props}/>
) : (
<CreateAccountLanding />
)
}
// Logged in users always create a named account
/>
}
Expand Down

0 comments on commit 34949cd

Please sign in to comment.