From ac910bf10d2d8811fb36dfb277f6b2e2ee99fffc Mon Sep 17 00:00:00 2001 From: Pierre-Louis Guhur Date: Mon, 27 Apr 2020 21:24:16 +0200 Subject: [PATCH] bug fix -- couldn't change ending date --- .eslintrc.json | 3 ++- src/components/views/CreateElection.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 6a95697..5f65023 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -28,5 +28,6 @@ } }, "rules": { + "no-console": "off" } -} \ No newline at end of file +} diff --git a/src/components/views/CreateElection.jsx b/src/components/views/CreateElection.jsx index f7ed147..81b5c6d 100644 --- a/src/components/views/CreateElection.jsx +++ b/src/components/views/CreateElection.jsx @@ -567,7 +567,7 @@ class CreateElection extends Component { finish: new Date( timeMinusDate(finish) + new Date( - getOnlyValidDate(e.target.valueAsNumber) + e.target.valueAsNumber ).getTime() ) });