diff --git a/src/App.jsx b/src/App.jsx index 473fded..9d1e929 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -30,12 +30,11 @@ class App extends Component { this.setState({ valuationPeriod: value }, - () => this.fetchServiceData()); + () => this.fetchServiceData()); } - fetchServiceData(){ - debugger + fetchServiceData() { fetch('http://192.168.0.112:8080/assets?valuationPeriod=' + this.state.valuationPeriod) .then(res => res.json()) .then((data) => { @@ -51,12 +50,14 @@ class App extends Component { render() { const { portfolioName, data } = this.state; return ( -
- -
+
+
+
+ +
- - + +