bug fix -- couldn't change ending date

pull/73/head
Pierre-Louis Guhur 4 years ago
parent 8b8882fd2f
commit ac910bf10d

@ -28,5 +28,6 @@
} }
}, },
"rules": { "rules": {
"no-console": "off"
} }
} }

@ -567,7 +567,7 @@ class CreateElection extends Component {
finish: new Date( finish: new Date(
timeMinusDate(finish) + timeMinusDate(finish) +
new Date( new Date(
getOnlyValidDate(e.target.valueAsNumber) e.target.valueAsNumber
).getTime() ).getTime()
) )
}); });

Loading…
Cancel
Save