From 047471ebfb38160f89940ba8a670d3d68dba59a0 Mon Sep 17 00:00:00 2001
From: AlexisPoyen <apoyen@grandlyon.com>
Date: Fri, 10 Jul 2020 09:24:37 +0200
Subject: [PATCH] Fix : remove useless import or variable

---
 web/components/management/genericElection.js        | 1 -
 web/components/management/management.js             | 1 -
 web/components/management/round-desks.js            | 1 -
 web/components/management/round.js                  | 1 -
 web/services/election/calculate-election-generic.js | 5 ++---
 5 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/web/components/management/genericElection.js b/web/components/management/genericElection.js
index bb65aca..a4daf79 100644
--- a/web/components/management/genericElection.js
+++ b/web/components/management/genericElection.js
@@ -1,5 +1,4 @@
 // Imports
-import * as Auth from "/services/auth/auth.js";
 import * as Election from "/components/management/election.js";
 import * as Areas from "/components/management/area.js";
 import * as Sections from "/components/management/section.js";
diff --git a/web/components/management/management.js b/web/components/management/management.js
index 2fb8d69..0617693 100644
--- a/web/components/management/management.js
+++ b/web/components/management/management.js
@@ -1,5 +1,4 @@
 // Imports
-import * as Auth from "/services/auth/auth.js";
 import * as Election from "/components/management/genericElection.js";
 import * as Round from "/components/management/round.js";
 import * as Party from "/components/management/party.js";
diff --git a/web/components/management/round-desks.js b/web/components/management/round-desks.js
index 9347d58..5780b8a 100644
--- a/web/components/management/round-desks.js
+++ b/web/components/management/round-desks.js
@@ -58,7 +58,6 @@ class RoundDesk {
   }
 
   handleDom() {
-    let roundHandler = this;
     document
       .getElementById(`round-new`)
       .addEventListener("click", function () {});
diff --git a/web/components/management/round.js b/web/components/management/round.js
index 6f7c3a1..2cbfbdf 100644
--- a/web/components/management/round.js
+++ b/web/components/management/round.js
@@ -1,5 +1,4 @@
 // Imports
-import * as Auth from "/services/auth/auth.js";
 import * as RoundsCard from "/components/management/rounds-card.js";
 import * as RoundDesks from "/components/management/round-desks.js";
 import * as CandidateList from "/components/management/candidate-lists.js";
diff --git a/web/services/election/calculate-election-generic.js b/web/services/election/calculate-election-generic.js
index 02bfe17..c6179ae 100644
--- a/web/services/election/calculate-election-generic.js
+++ b/web/services/election/calculate-election-generic.js
@@ -131,7 +131,6 @@ class DirectMetropolitanCalculator {
           ).toFixed(2);
         }
       });
-      party = currentParty;
     });
     parties.sort((a, b) => {
       return b.VoiceNumber - a.VoiceNumber;
@@ -423,11 +422,11 @@ class DirectMetropolitanCalculator {
           ) {
             area.errorAgeAverage = true;
           }
-          ageCandidate1 = ageCount(
+          let ageCandidate1 = ageCount(
             day,
             new Date(area.candidateLists[0].Candidates[0].Birthdate)
           );
-          ageCandidate2 = ageCount(
+          let ageCandidate2 = ageCount(
             day,
             new Date(area.candidateLists[1].Candidates[0].Birthdate)
           );
-- 
GitLab