diff --git a/client/src/pages/Contacts.tsx b/client/src/pages/Contacts.tsx index bbfd04d..b3b726c 100644 --- a/client/src/pages/Contacts.tsx +++ b/client/src/pages/Contacts.tsx @@ -49,6 +49,7 @@ export default function Contacts() { const [formData, setFormData] = useState({ groupId: effectiveGroupId ?? 0, name: "", + company: "", role: "", phone: "", email: "", @@ -135,6 +136,7 @@ export default function Contacts() { setFormData({ groupId: effectiveGroupId ?? 0, name: "", + company: "", role: "", phone: "", email: "", @@ -148,6 +150,7 @@ export default function Contacts() { setFormData({ groupId: contact.groupId, name: contact.name, + company: (contact as any).company || "", role: contact.role || "", phone: contact.phone || "", email: contact.email || "", @@ -384,6 +387,9 @@ export default function Contacts() {
{contact.name}
+ {(contact as any).company && ( +{(contact as any).company}
+ )} {contact.role && ({contact.role}
)} @@ -485,6 +491,16 @@ export default function Contacts() { />