diff --git a/src/components/views/CreateElection.jsx b/src/components/views/CreateElection.jsx index 94b46bd..800938b 100644 --- a/src/components/views/CreateElection.jsx +++ b/src/components/views/CreateElection.jsx @@ -229,7 +229,7 @@ class CreateElection extends Component { editCandidateLabel = (event, index) => { let candidates = this.state.candidates; candidates[index].label = event.currentTarget.value; - candidates.map((candidate) => { + candidates.map(candidate => { return candidate.label; }); this.setState({ @@ -469,10 +469,10 @@ class CreateElection extends Component { - + - + - +