From 28b2fb83a6cc56208734c6ade9cf060e1bd1825a Mon Sep 17 00:00:00 2001
From: Thomas Bouquet <thomas.bouquet@student-cs.fr>
Date: Fri, 5 Mar 2021 12:05:41 +0100
Subject: [PATCH] tentative sprint

---
 front/src/components/Login/SubmitForm.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/front/src/components/Login/SubmitForm.js b/front/src/components/Login/SubmitForm.js
index 1748c564..1c274a17 100644
--- a/front/src/components/Login/SubmitForm.js
+++ b/front/src/components/Login/SubmitForm.js
@@ -5,6 +5,9 @@ import eventData from "../../eventData/eventData.json";
 
 function Submit(props) {
 
+    const now = Date.now() < 0;
+    console.log(now);
+
     /*var [participants,setParticipants] = useState([]);
         useEffect(() => {
             const interval = setInterval(() => {
@@ -26,7 +29,7 @@ function Submit(props) {
         })
         }*/
 
-        if (Date.now() < 0) {
+        if (now < 0) {
 
         axios.post('/api/staff/new_score',
             {
-- 
GitLab