fix: remove unused state var

This commit is contained in:
Richard Ramos 2019-08-20 14:42:23 -04:00
parent 2fc525efd7
commit 633346d478
1 changed files with 2 additions and 3 deletions

View File

@ -29,8 +29,7 @@ const observables = {};
class App extends React.Component {
state = {
ready: false,
observable: null
ready: false
}
componentDidMount(){
@ -66,7 +65,7 @@ class App extends React.Component {
}
render() {
const {ready, observable} = this.state;
const {ready} = this.state;
if(!ready) return <span>Loading...</span>;
return <EnhancedRankItem votes={observables.votes} onUpvote={this.upvote} onDownvote={this.downvote} />;
}