Skip to content

Commit 8765d3a

Browse files
t-webberliviopersonne
authored andcommitted
fix(contact): add missing email in error pop-up
1 parent 2165c1c commit 8765d3a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

dictionaries/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ export const enDictionary: Dictionary = {
426426
},
427427
error: {
428428
title: 'Unexpected error...',
429-
message: 'Please contact us instead by sending a mail to',
429+
message: 'Please contact us instead by sending an email to',
430430
},
431431
},
432432
legal: {

src/components/meta-components/contact-form.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import { getDictionary } from '@/locales/dictionaries';
3232
import { nav } from '@/locales/routing';
3333
import { sendForm } from '@/mail/mailer';
3434

35+
import { EmailContact } from '../telecom-etude/contact';
36+
3537
type Fields = 'name' | 'email' | 'tel' | 'societe' | 'subject' | 'message';
3638
const ListFields = ['name', 'email', 'tel', 'societe', 'subject', 'message'];
3739

@@ -181,7 +183,14 @@ export default function ContactForm({
181183
{t[success ? 'success' : 'error'].title}
182184
</AlertDialogTitle>
183185
<AlertDialogDescription>
184-
{t[success ? 'success' : 'error'].message}
186+
{success ? (
187+
<>{t.success.message}</>
188+
) : (
189+
<div className="flex-col items-center">
190+
<p>{t.error.message}</p>
191+
<EmailContact />
192+
</div>
193+
)}
185194
</AlertDialogDescription>
186195
</AlertDialogHeader>
187196
{success ? (

0 commit comments

Comments
 (0)