content/join: fix registration form

This commit is contained in:
Antoine Martin 2024-06-15 15:00:11 -04:00
parent dac077d9a8
commit 63ae5e954e
Signed by: ayakael
GPG key ID: D62A472A4AA7D541

View file

@ -16,10 +16,8 @@
.findIndex(item => item.title === email); .findIndex(item => item.title === email);
if (index !== -1) { if (index !== -1) {
console.log(result[index]);
return true; return true;
} else { } else {
console.log("Item not found");
return false; return false;
} }
} }
@ -69,7 +67,7 @@
.then(response => response.json()) .then(response => response.json())
.then(result => { .then(result => {
console.log('Success:', result); console.log('Success:', result);
alaert("Request submitted. A working group member will process your registration shortly. If you receive no contact within seven days of registration, please send an email to support@ilot.io"); alert("Request submitted. A working group member will process your registration shortly. If you receive no contact within seven days of registration, please send an email to support@ilot.io");
}) })
.catch(error => { .catch(error => {
console.error('Error:', error) console.error('Error:', error)