mirror of
https://github.com/embarklabs/subspace.git
synced 2025-01-23 12:59:25 +00:00
fix: remove unused state var
This commit is contained in:
parent
2fc525efd7
commit
633346d478
@ -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} />;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user