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

console

parent ea2bd985
Branches
No related tags found
No related merge requests found
......@@ -41,6 +41,20 @@ function Submit (props) {
})
};
if (useIsParticipant({id: 17}) === false){
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