From 8ec8ed4b4258fbddbef59baabe07ce4ad56c20ac Mon Sep 17 00:00:00 2001
From: Adrien NUNES <anunes.etudiant@gmail.com>
Date: Thu, 16 Nov 2023 13:45:39 +0100
Subject: [PATCH] fix voteparser

---
 vote/VoteParser.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vote/VoteParser.js b/vote/VoteParser.js
index 6ffd954..a340981 100644
--- a/vote/VoteParser.js
+++ b/vote/VoteParser.js
@@ -38,13 +38,13 @@ class VoteParser{
     }
 
     categoryCase(category, content){
-        if(category === CATEGORY.SOURCE || category === CATEGORY.SENTENCE){
+        if(category === Category.SOURCE || category === Category.SENTENCE){
             return content;
         }
 
         const char = content.charAt(0);
         const reste = content.slice(1);
-        content = (category === CATEGORY.ACTOR) ? char.toUpperCase() + reste: char.toLowerCase() + reste;
+        content = (category === Category.ACTOR) ? char.toUpperCase() + reste: char.toLowerCase() + reste;
         return content;
     }
 
-- 
GitLab