Browse Source

Update CandidatesField.jsx

jeremie/v2
jimmys-box 2 months ago
parent
commit
ffc9f450dd
  1. 2
      components/form/CandidatesField.jsx

2
components/form/CandidatesField.jsx

@ -73,7 +73,7 @@ const CandidatesField = ({onChange}) => {
const handleKeyPress = (e, index) => {
if (e.key === "Enter") {
e.preventDefault();
if (index + 2 === candidates.length) {
if (index + 1 === candidates.length) {
addCandidate();
}
else {

Loading…
Cancel
Save