fix: contact form
This commit is contained in:
parent
98348f2627
commit
7a10661ed3
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
"use server"
|
||||
|
||||
import { z } from 'zod'
|
||||
import { Resend } from 'resend'
|
||||
|
||||
|
|
@ -40,6 +42,7 @@ export async function send(prevState: any, formData: FormData) {
|
|||
text: `Nachricht von ${validatedFields.data.name}: \n\n ${validatedFields.data.message}`
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
return { message: "Fehler beim senden der Nachricht." };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue