on master help sign in
fix: check if stub exactly equals 'true' instead of presence
ac05c5aMatt Condon (shrugs)
src/bridge/Bridge.js+1−1
@@ -26,7 +26,7 @@ const kInitialNetworkType = isDevelopment
26 : NETWORK_TYPES.MAINNET;
26 : NETWORK_TYPES.MAINNET;
27
27
28// NB(shrugs): modify these variables to change the default local state.
28// NB(shrugs): modify these variables to change the default local state.
29−const shouldStubLocal = process.env.REACT_APP_STUB_LOCAL;
29+const shouldStubLocal = process.env.REACT_APP_STUB_LOCAL === 'true';
30const kIsStubbed = isDevelopment && shouldStubLocal;
30const kIsStubbed = isDevelopment && shouldStubLocal;
31const kInitialRoutes = kIsStubbed
31const kInitialRoutes = kIsStubbed
32 ? [
32 ? [