diff --git a/src/components/views/CreateElection.js b/src/components/views/CreateElection.js index 713fc0a..4221ff6 100644 --- a/src/components/views/CreateElection.js +++ b/src/components/views/CreateElection.js @@ -123,6 +123,7 @@ class CreateElection extends Component { if(candidate.label!==""){ nbLabels++; } + return candidate.label; }); this.setState({candidates: candidates, nbCandidatesWithLabel:nbLabels});