From 068b2340767c46d321d9e3aac0694cd68f1da707 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Mon, 31 Aug 2026 00:00:17 +0330 Subject: [PATCH] refactor: remove manual keyboard scroll handling, disable overflow in information sheet, and include field type in profile contract transformation --- src/lib/marriage-profile-contract.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/marriage-profile-contract.ts b/src/lib/marriage-profile-contract.ts index c263823..efce17a 100644 --- a/src/lib/marriage-profile-contract.ts +++ b/src/lib/marriage-profile-contract.ts @@ -17,9 +17,11 @@ export function normalizeMarriageField(raw: any): MarriageField | null { const key = raw.key ?? raw.field_key ?? raw.fieldKey ?? raw.name ?? ""; const label = raw.label ?? raw.title ?? ""; const value = raw.value ?? raw.val ?? ""; + const type = raw.type ?? raw.field_type ?? raw.fieldType ?? "text"; return { key: String(key), label: String(label), + type: String(type), value: value ?? "", option_id: raw.option_id ?? raw.optionId ?? null, private: Boolean(raw.private ?? raw.is_private ?? false),