diff --git a/apps/website/app/root.tsx b/apps/website/app/root.tsx index 15a5f6b17f..879fc3af61 100644 --- a/apps/website/app/root.tsx +++ b/apps/website/app/root.tsx @@ -55,7 +55,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => { const customer = await getCustomerFromCookie(request); return { isLoggedIn: !!customer, - honeypotInputProps: honeypot.getInputProps(), + honeypotInputProps: await honeypot.getInputProps(), }; }; diff --git a/apps/website/app/routes/_index.tsx b/apps/website/app/routes/_index.tsx index 1f6a557148..d6431ae3e4 100644 --- a/apps/website/app/routes/_index.tsx +++ b/apps/website/app/routes/_index.tsx @@ -125,7 +125,7 @@ export const action = async ({ request }: Route.ActionArgs) => { .with("contactSubmission", async () => { let isSpam = false; try { - honeypot.check(formData); + await honeypot.check(formData); } catch (e) { if (e instanceof SpamError) isSpam = true; }