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

console

parent 0b526e03
Branches
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ function Submit (props) {
{
score: props.score,
equipe: props.equipe.value,
participant: 17
participant: props.participant.value
})
.then(() => {
alert("Score ajouté");
......@@ -41,20 +41,6 @@ function Submit (props) {
})
};
if (!useIsParticipant({id: 17})){
axios.post('/api/admin/new_participant',
{
id: 17,
name: props.participant.label
})
.then(() => {
alert("Participant ajouté");
window.location='/Input';
}, (error) => {
console.log(error);
});
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment