on master help sign in
fix: use stubbed initial routes
e7ea855Matt Condon (shrugs)
.gitignore+1
@@ -28,3 +28,4 @@ bridge*.tar.gz
28checksums.txt
28checksums.txt
29
29
30*.pem
30*.pem
31+.vscode
src/bridge/Bridge.js+4−4
@@ -21,9 +21,9 @@ import {
21import { BRIDGE_ERROR } from "./lib/error";
21import { BRIDGE_ERROR } from "./lib/error";
22import { isLocal } from "./lib/flags";
22import { isLocal } from "./lib/flags";
23
23
24−// NB(shrugs): toggle this shouldStubLocal variable to use the default local state.
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 because we'll never stub
25+// don't commit changes to this line, but there shouldn't be a problem
26−// on a production build.
26+// if you do because we'll never stub on a production build.
27const shouldStubLocal = false;
27const shouldStubLocal = false;
28const isStubbed = isLocal && shouldStubLocal;
28const isStubbed = isLocal && shouldStubLocal;
29const kInitialRoutes = isStubbed
29const kInitialRoutes = isStubbed
@@ -238,7 +238,7 @@ class Bridge extends React.Component {
238 } = this.state;
238 } = this.state;
239
239
240 return (
240 return (
241− <HistoryProvider initialRoutes={[{ name: ROUTE_NAMES.LANDING }]}>
241+ <HistoryProvider initialRoutes={kInitialRoutes}>
242 <TxnConfirmationsProvider>
242 <TxnConfirmationsProvider>
243 <Container>
243 <Container>
244 <Row>
244 <Row>