diff --git a/front/src/components/Login/SubmitForm.js b/front/src/components/Login/SubmitForm.js index 1748c564e194f2b56c423d58e69d366890d723d6..1c274a17189f82bce8b88326987e599043a94e1c 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', {