mirror of
https://github.com/t404owo/t404null.git
synced 2025-12-12 18:08:47 +00:00
Fix error handling in mail.js for status message
This commit is contained in:
@@ -44,7 +44,7 @@ form.addEventListener("submit", async (e) => {
|
||||
form.reset();
|
||||
} catch (error) {
|
||||
console.error("Error sending message:", error);
|
||||
statusMessage.textContent = (error === "field_missing") ?
|
||||
statusMessage.textContent = (error.message === "field_missing") ?
|
||||
/*if (error==="field_missing")*/
|
||||
"Please fill in all fields." :
|
||||
/*else*/
|
||||
|
||||
Reference in New Issue
Block a user