fix: contact form

This commit is contained in:
Benno Tielen 2025-02-11 10:56:01 +01:00
parent 98348f2627
commit 7a10661ed3

View file

@ -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." };
}