diff --git a/src/components/PlansSection.tsx b/src/components/PlansSection.tsx index 69bbc27..0f2147b 100644 --- a/src/components/PlansSection.tsx +++ b/src/components/PlansSection.tsx @@ -67,7 +67,7 @@ const PlansSection = () => { (async () => { const { data } = await supabase .from("profiles") - .select("company_name, phone, street_address, postal_code") + .select("company_name, phone, street_address, postal_code, city") .eq("user_id", user.id) .maybeSingle(); setForm((prev) => ({ @@ -77,6 +77,7 @@ const PlansSection = () => { telefon: prev.telefon || data?.phone || "", adress: prev.adress || data?.street_address || "", postnummer: prev.postnummer || data?.postal_code || "", + stad: prev.stad || data?.city || "", })); })(); }, [user, showForm]);