From 3e550e6d41f8cd553e851d8eff8b2ec5cca7b9ea Mon Sep 17 00:00:00 2001 From: Clement G Date: Sat, 2 May 2020 13:53:51 +0200 Subject: [PATCH] feat(creat-election) : unlimited election are now limited to 10 years instead of 1 year --- src/components/views/CreateElection.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/CreateElection.jsx b/src/components/views/CreateElection.jsx index 065d6f0..8e8a55b 100644 --- a/src/components/views/CreateElection.jsx +++ b/src/components/views/CreateElection.jsx @@ -312,7 +312,7 @@ class CreateElection extends Component { start = new Date( now.getTime() - minutes(now) - seconds(now) - ms(now) ); - finish=new Date(start.getTime() + 1 * 365 * 24 * 3600 * 1000); + finish=new Date(start.getTime() + 10 * 365 * 24 * 3600 * 1000); } const { t } = this.props;