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

console

parent 555f16e0
No related branches found
No related tags found
No related merge requests found
...@@ -37,17 +37,17 @@ function Submit (props) { ...@@ -37,17 +37,17 @@ function Submit (props) {
window.location='/Input'; window.location='/Input';
}, (error) => { }, (error) => {
console.log(error); console.log(error);
}).then(AddParticipantIfNotExists( })
{
id: 17,
name: props.nom.label
}
));
}; };
const onSubmit = () => {addScore()}; const onSubmit = () => {addScore().then(AddParticipantIfNotExists(
{
id: 17,
name: props.nom.label
}
));};
return ( return (
<MDBBtn type="submit" icon="send" gradient="blue" rounded disabled={props.unlock} className="btn-block z-depth-1a" onClick={onSubmit}><MDBIcon icon="paper-plane" className="ml-1" /> Envoyer</MDBBtn> <MDBBtn type="submit" icon="send" gradient="blue" rounded disabled={props.unlock} className="btn-block z-depth-1a" onClick={onSubmit}><MDBIcon icon="paper-plane" className="ml-1" /> Envoyer</MDBBtn>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment