on master help sign in
fix: use stubbed initial routes
commite7ea8554137666b88c7910d4a88e9a63c0a530be authorMatt Condon (shrugs) <mattgcondon@gmail.com> dateTue 11 Jun 2019, 11:17 (7 years ago) parent4a17a28
2 files changed+5−4
.gitignore+1 src/bridge/Bridge.js+4−4
.gitignore+1
@@ -28,3 +28,4 @@ bridge*.tar.gz
2828checksums.txt
2929
3030*.pem
31+.vscode
src/bridge/Bridge.js+4−4
@@ -21,9 +21,9 @@ import {
2121import { BRIDGE_ERROR } from "./lib/error";
2222import { isLocal } from "./lib/flags";
2323
24−// NB(shrugs): toggle this shouldStubLocal variable to use the default local state.
25−// don't commit changes to this line, but there shouldn't be a problem because we'll never stub
26−// on a production build.
24+// NB(shrugs): toggle this variable to use the default local state.
25+// don't commit changes to this line, but there shouldn't be a problem
26+// if you do because we'll never stub on a production build.
2727const shouldStubLocal = false;
2828const isStubbed = isLocal && shouldStubLocal;
2929const kInitialRoutes = isStubbed
@@ -238,7 +238,7 @@ class Bridge extends React.Component {
238238 } = this.state;
239239
240240 return (
241− <HistoryProvider initialRoutes={[{ name: ROUTE_NAMES.LANDING }]}>
241+ <HistoryProvider initialRoutes={kInitialRoutes}>
242242 <TxnConfirmationsProvider>
243243 <Container>
244244 <Row>