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

console

parent b7075a3e
Branches
No related tags found
No related merge requests found
......@@ -32,14 +32,6 @@ function Submit (props) {
equipe: props.equipe.value,
participant: 17
})
.then(() => {
AddParticipantIfNotExists(
{
id: 17,
name: props.participant.label
}
);
})
.then(() => {
alert("Score ajouté");
window.location='/Input';
......@@ -52,7 +44,15 @@ function Submit (props) {
const onSubmit = () => {addScore()};
const onSubmit = () => {addScore()
.then(() => {
AddParticipantIfNotExists(
{
id: 17,
name: props.participant.label
}
);
})};
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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment