From 0b02ac868680295f373257ac8841527a4c568f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=BCndig?= Date: Sat, 1 Jun 2024 10:37:40 +0200 Subject: [PATCH] bugfix(website): fix newsletter signup form (#842) --- .../src/app/[lang]/[region]/(website)/newsletter/page.tsx | 2 +- .../[region]/(website)/newsletter/subscription-info-form.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx b/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx index c31cfe4d1..51f80ddb1 100644 --- a/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx +++ b/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx @@ -67,7 +67,7 @@ export default async function Page({ params }: DefaultPageProps) { translations={{ firstname: translator.t('updates.firstname'), email: translator.t('updates.email'), - updatesSubmitButton: translator.t('updates.submit-button'), + submitButton: translator.t('updates.submit-button'), toastMessage: translator.t('updates.newsletter-updated-toast'), toastErrorMessage: translator.t('updates.newsletter-error-toast'), }} diff --git a/website/src/app/[lang]/[region]/(website)/newsletter/subscription-info-form.tsx b/website/src/app/[lang]/[region]/(website)/newsletter/subscription-info-form.tsx index 1130ca2a3..f8c8ff37a 100644 --- a/website/src/app/[lang]/[region]/(website)/newsletter/subscription-info-form.tsx +++ b/website/src/app/[lang]/[region]/(website)/newsletter/subscription-info-form.tsx @@ -13,7 +13,7 @@ type PersonalInfoFormProps = { translations: { firstname: string; email: string; - updatesSubmitButton: string; + submitButton: string; toastMessage: string; toastErrorMessage: string; }; @@ -24,7 +24,6 @@ export function SubscriptionInfoForm({ lang, translations }: PersonalInfoFormPro const formSchema = z.object({ firstname: z.string(), - lastname: z.string(), email: z.string().email(), }); @@ -90,7 +89,7 @@ export function SubscriptionInfoForm({ lang, translations }: PersonalInfoFormPro color="accent" className="mt-4 rounded-full" > - {translations.updatesSubmitButton} + {translations.submitButton}