mirror of
https://github.com/t404owo/t404null.git
synced 2025-12-12 09:58:46 +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();
|
form.reset();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error sending message:", error);
|
console.error("Error sending message:", error);
|
||||||
statusMessage.textContent = (error === "field_missing") ?
|
statusMessage.textContent = (error.message === "field_missing") ?
|
||||||
/*if (error==="field_missing")*/
|
/*if (error==="field_missing")*/
|
||||||
"Please fill in all fields." :
|
"Please fill in all fields." :
|
||||||
/*else*/
|
/*else*/
|
||||||
|
|||||||
Reference in New Issue
Block a user