Merge pull request #170 from urbit/fix/correctly-check-env-flag
fix: check if stub exactly equals 'true' instead of presence
commit791d63a9f600ac5a1637ba29fc48d9f0641b6455
authorMatt Condon <mattgcondon@gmail.com>
dateTue 18 Jun 2019, 16:08 (7 years ago)
parent39cf89dac05c5a
src/bridge/Bridge.js+1−1
@@ -26,7 +26,7 @@ const kInitialNetworkType = isDevelopment
2626 : NETWORK_TYPES.MAINNET;
2727
2828// 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';
3030const kIsStubbed = isDevelopment && shouldStubLocal;
3131const kInitialRoutes = kIsStubbed
3232 ? [