diff --git a/View/src/JS/Admin2.js b/View/src/JS/Admin2.js index d0b0ceb7..a5c4a097 100644 --- a/View/src/JS/Admin2.js +++ b/View/src/JS/Admin2.js @@ -91,10 +91,8 @@ function exec(code, id) { function check() { if (retourSolution == "ERROR") { alert("Il semblerait qu'il y a une erreur de python dans le code" + " Le terminal affiche : " + terminal); - } else if (retourSolution == retourCode) { + } else{ alert("Aucune erreur détectée"); - } else { - alert("Il semblerait que le solution ne soit pas la bonne " + " Le terminal affiche : " + terminal); } }