diff --git a/src/modules/registratura/components/registry-entry-form.tsx b/src/modules/registratura/components/registry-entry-form.tsx index bb24214..7bf070e 100644 --- a/src/modules/registratura/components/registry-entry-form.tsx +++ b/src/modules/registratura/components/registry-entry-form.tsx @@ -86,11 +86,11 @@ import { } from "../services/deadline-service"; import { getDeadlineType } from "../services/deadline-catalog"; -/** Format a contact for display: "Name (Company)" / "Company" / "Name" */ +/** Format a contact for display: "Name – Company" / "Company" / "Name" */ function formatContactLabel(c: { name: string; company: string }): string { const name = c.name?.trim(); const company = c.company?.trim(); - if (name && company) return `${name} (${company})`; + if (name && company) return `${name} – ${company}`; return name || company || ""; } diff --git a/src/modules/registratura/components/registry-table.tsx b/src/modules/registratura/components/registry-table.tsx index 7f451f5..f03f811 100644 --- a/src/modules/registratura/components/registry-table.tsx +++ b/src/modules/registratura/components/registry-table.tsx @@ -39,11 +39,11 @@ import { DEFAULT_DOC_TYPE_LABELS, EXTERNAL_STATUS_LABELS } from "../types"; import { getOverdueDays } from "../services/registry-service"; import { cn } from "@/shared/lib/utils"; -/** Format a contact for display: "Name (Company)" / "Company" / "Name" */ +/** Format a contact for display: "Name – Company" / "Company" / "Name" */ function formatContactLabel(c: { name?: string; company?: string }): string { const name = (c.name ?? "").trim(); const company = (c.company ?? "").trim(); - if (name && company) return `${name} (${company})`; + if (name && company) return `${name} – ${company}`; return name || company || ""; }