join: remove empty field
All checks were successful
/ render (push) Successful in 44s

This commit is contained in:
Antoine Martin 2024-10-08 11:03:07 -04:00
parent 5ff4ff0eab
commit c31b6c6dfb
Signed by: ayakael
GPG key ID: D62A472A4AA7D541
5 changed files with 10 additions and 24 deletions

View file

@ -21,7 +21,6 @@
async function createIssue() {
var baseurl = 'https://lab.ilot.io/api/v4/projects/99/issues?&labels=Request';
var emptyfield = document.getElementById("emptyfield").value;
var mathspamtrap = document.getElementById("math-spam-trap").value;
var agreetoterms = document.getElementById("agree-to-terms").checked;
var email = document.getElementById("email").value;
@ -36,11 +35,6 @@
return false;
}
if(emptyfield) {
alert("Empty field should be empty");
return false;
}
if(mathspamtrap != "9") {
alert("Wrong math answer");
return false;