1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 18:25:32 -04:00

refactor .js files to ES modules where possible

This commit is contained in:
2024-03-12 14:58:00 -04:00
parent e66dc37c41
commit e1a26d5257
28 changed files with 460 additions and 414 deletions

View File

@@ -174,10 +174,10 @@ const ContactForm = ({ className }: ContactFormProps) => {
.catch((error) => {
setSuccess(false);
if (error.message === "USER_MISSING_DATA") {
if (error.message === "missing_data") {
// this should be validated client-side but it's also checked server-side just in case someone slipped past
setFeedback("Please make sure that all fields are properly filled in.");
} else if (error.message === "USER_INVALID_CAPTCHA") {
} else if (error.message === "invalid_captcha") {
// missing/invalid captcha
setFeedback("Did you complete the CAPTCHA? (If you're human, that is...)");
} else {