Added more agent skills
This commit is contained in:
+2
-2
@@ -100,8 +100,8 @@ function ContactForm() {
|
||||
const { token, TurnstileWidget, reset, enabled } = useTurnstile()
|
||||
|
||||
async function handleSubmit(data) {
|
||||
const result = await submitForm({ ...data, turnstileToken: token })
|
||||
if (result.ok) reset() // wyczyść token na następne wysłanie
|
||||
const result = await submitAction(formId, data, token ?? undefined) // server action → submitForm (forms.md)
|
||||
reset() // token jest jednorazowy — nowy na każde wysłanie, także po błędzie
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user