Skip to content

Commit

Permalink
fixed app being blank on launch
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhappy committed Mar 4, 2020
1 parent 052b212 commit 7d04712
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,6 @@ class App extends Component {
<div className="app">
<div className="container py-2">
<Switch>
<Route
path="/"
exact
render={props => (
<All
{...props}
invData={this.state.invData}
popData={this.state.popData}
sillyData={this.state.sillyData}
/>
)}
/>
<Route
path="/inv"
render={props => (
Expand All @@ -112,6 +100,17 @@ class App extends Component {
<SillyMeter {...props} sillyData={this.state.sillyData} />
)}
/>
<Route
path="/"
render={props => (
<All
{...props}
invData={this.state.invData}
popData={this.state.popData}
sillyData={this.state.sillyData}
/>
)}
/>
</Switch>
</div>
<Navbar
Expand Down

0 comments on commit 7d04712

Please sign in to comment.