diff --git a/components/ContactForm.tsx b/components/ContactForm.tsx index b0eac7eb..eb9d3487 100644 --- a/components/ContactForm.tsx +++ b/components/ContactForm.tsx @@ -58,6 +58,29 @@ export default function ContactForm() { ); } + if (status === 'error') { + return ( + +
+ + + + + +
+ + {t('form.errorTitle') || 'Submission Failed!'} + +

+ {t('form.error') || 'Something went wrong. Please check your input and try again.'} +

+ +
+ ); + } + return ( @@ -100,11 +123,6 @@ export default function ContactForm() { required /> - {status === 'error' && ( -
- {t('form.error') || 'An error occurred. Please try again later.'} -
- )}
+
+ ); + } + return (