Skip to content
Snippets Groups Projects
Commit 77d79c7c authored by Thomas Bouquet's avatar Thomas Bouquet
Browse files

sprint

parent 1a4a4cb0
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,19 @@ import eventData from "../../eventData/eventData.json";
function Submit(props) {
const timenow = parseInt(Date.now());
var realId;
var realName;
if (timenow < 0/*eventData.dateFin*/) {
realId = props.participant.value;
realName = props.participant.label
}
else {
realId = 'sprint';
realName = 'Sprint'
}
/*var [participants,setParticipants] = useState([]);
useEffect(() => {
const interval = setInterval(() => {
......@@ -26,19 +39,6 @@ function Submit(props) {
})
}*/
const timenow = Date.now();
var realId;
var realName;
if (timenow < 0/*eventData.dateFin*/) {
realId = props.participant.value;
realName = props.participant.label
}
else {
realId = 'sprint';
realName = 'Sprint'
}
axios.post('/api/staff/new_score',
{
score: Math.max(0, props.score),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment