Skip to content

Commit

Permalink
Fix empty "Voted" list messsage
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Feb 14, 2018
1 parent eb4dc1a commit 1fc5baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/delegateList/delegateList.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class DelegateList extends React.Component {

if (!this.isInitial && this.props.delegates.length === 0) {
message = 'No delegates found.';
} else if (this.state.filter === voteFilters.voted &&
} else if (this.state.activeFilter === voteFilters.voted &&
Object.keys(this.props.votes).length === 0) {
message = 'You have not voted yet.';
} else if (this.query !== '' && Object.keys(filteredList).length === 0) {
Expand Down

0 comments on commit 1fc5baa

Please sign in to comment.