mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-26 12:21:30 +00:00
lint
This commit is contained in:
@@ -16,16 +16,16 @@ const Stats = createClass({
|
||||
totalBrews : 0
|
||||
},
|
||||
fetching : false
|
||||
}
|
||||
};
|
||||
},
|
||||
componentDidMount(){
|
||||
this.fetchStats();
|
||||
},
|
||||
fetchStats(){
|
||||
this.setState({ fetching : true})
|
||||
this.setState({ fetching: true });
|
||||
request.get('/admin/stats')
|
||||
.then((res)=> this.setState({ stats : res.body }))
|
||||
.finally(()=>this.setState({fetching : false}));
|
||||
.then((res)=>this.setState({ stats: res.body }))
|
||||
.finally(()=>this.setState({ fetching: false }));
|
||||
},
|
||||
render(){
|
||||
return <div className='Stats'>
|
||||
|
||||
Reference in New Issue
Block a user