From 1fc5baa18381b885b21d6a40f9705b0306fc3b18 Mon Sep 17 00:00:00 2001 From: Vit Stanislav Date: Wed, 14 Feb 2018 16:45:30 +0100 Subject: [PATCH] Fix empty "Voted" list messsage --- src/components/delegateList/delegateList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/delegateList/delegateList.js b/src/components/delegateList/delegateList.js index 63852a0f1f..d548e43245 100644 --- a/src/components/delegateList/delegateList.js +++ b/src/components/delegateList/delegateList.js @@ -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) {