mirror of
https://github.com/t404owo/t404null.git
synced 2026-11-05 09:50:27 +00:00
Fix error handling in mail.js for status message
This commit is contained in:
1 parent
123fd0a7bf
commit
eefe20d81c
1 file changed
+1
-1
+1
-1
@@ -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