on master help sign in
network: fix init logic

Co-authored-by: fang <github@fang.io>

commitcca35240aced8dd9eabb4fcf5ac2a9720c6343eb authortomholford <16504501+tomholford@users.noreply.github.com> dateMon 16 Aug 2021, 14:40 (5 years ago) parentd141799
1 file changed+3−3
src/Bridge.js+3−3
src/Bridge.js+3−3
@@ -21,9 +21,9 @@ import GlobalErrorBoundary from 'components/GlobalErrorBoundary';
2121
2222const INITIAL_NETWORK_TYPE = isRopsten
2323 ? NETWORK_TYPES.ROPSTEN
24− : isMainnet
25− ? NETWORK_TYPES.MAINNET
26− : NETWORK_TYPES.LOCAL;
24+ : (isDevelopment && !isMainnet)
25+ ? NETWORK_TYPES.LOCAL
26+ : NETWORK_TYPES.MAINNET;
2727
2828// NB(shrugs): modify these variables to change the default local state.
2929const SHOULD_STUB_LOCAL = process.env.REACT_APP_STUB_LOCAL === 'true';