From 17a1d49bdddd938f8543c2507abf19e8a69e8f09 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 13:56:48 +0000 Subject: [PATCH 1/7] Changes Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com> --- src/components/PlansSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PlansSection.tsx b/src/components/PlansSection.tsx index dd1ad13..99b9068 100644 --- a/src/components/PlansSection.tsx +++ b/src/components/PlansSection.tsx @@ -24,13 +24,13 @@ const formSchema = z.object({ företag: z.string().trim().min(1, "Fyll i företagsnamn").max(100), epost: z.string().trim().email("Ange en giltig e-postadress").max(255), telefon: z.string().trim().max(30).optional(), - adress: z.string().trim().max(200).optional(), + adress: z.string().trim().min(1, "Fyll i leveransadress").max(200), postnummer: z .string() .trim() .min(1, "Fyll i postnummer") .refine(isStockholmPostalCode, "Vi levererar endast inom Storstockholm (100 00 – 199 99)"), - stad: z.string().trim().max(100).optional(), + stad: z.string().trim().min(1, "Fyll i stad").max(100), kommentarer: z.string().trim().max(1000).optional(), }); From c0cd46bfe4d8342fbbc0eae07e62939f297afa59 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 13:56:55 +0000 Subject: [PATCH 2/7] Changes Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com> --- src/components/PlansSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PlansSection.tsx b/src/components/PlansSection.tsx index 99b9068..7587160 100644 --- a/src/components/PlansSection.tsx +++ b/src/components/PlansSection.tsx @@ -118,9 +118,9 @@ const PlansSection = () => { company: result.data.företag, email: result.data.epost, phone: result.data.telefon ?? "", - address: result.data.adress ?? "", + address: result.data.adress, postal_code: result.data.postnummer, - city: "Storstockholm", + city: result.data.stad, comments: result.data.kommentarer ?? "", return_url: `${window.location.origin}/order-confirmation?session_id={CHECKOUT_SESSION_ID}&method=card&kg=${recommendedKg}&email=${encodeURIComponent(result.data.epost)}`, environment: getStripeEnvironment(), From 68df7df7b6aa20a88f90a2eb491be51f55e1b5b9 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 13:57:07 +0000 Subject: [PATCH 3/7] Changes Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com> --- src/components/PlansSection.tsx | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/components/PlansSection.tsx b/src/components/PlansSection.tsx index 7587160..69bbc27 100644 --- a/src/components/PlansSection.tsx +++ b/src/components/PlansSection.tsx @@ -371,16 +371,23 @@ const PlansSection = () => {
{errors.adress}
+ )}{errors.stad}
+ )} +