on master help sign in
qol: fix network init logic

Since `isRopsten` is set explicitly, prefer that over `isDevelopment`;

commit2b57c77d811c7e209816d41acb9084e21338fc3d authortomholford <tomholford@users.noreply.github.com> dateFri 23 Jul 2021, 02:55 (5 years ago) parentdcdb300
1 file changed+4−4
src/Bridge.js+4−4
src/Bridge.js+4−4
@@ -19,10 +19,10 @@ import 'style/index.scss';
1919import WithErrorBoundary from 'components/WithErrorBoundary';
2020import GlobalErrorBoundary from 'components/GlobalErrorBoundary';
2121
22−const INITIAL_NETWORK_TYPE = isDevelopment
23− ? isRopsten
24− ? NETWORK_TYPES.ROPSTEN
25− : NETWORK_TYPES.LOCAL
22+const INITIAL_NETWORK_TYPE = isRopsten
23+ ? NETWORK_TYPES.ROPSTEN
24+ : isDevelopment
25+ ? NETWORK_TYPES.LOCAL
2626 : NETWORK_TYPES.MAINNET;
2727
2828// NB(shrugs): modify these variables to change the default local state.