16580 contact fields for owners and tenants

This commit is contained in:
2025-06-11 18:26:14 +01:00
parent 5fc3b3867c
commit 89f1691c8f
4 changed files with 99 additions and 42 deletions
+12 -5
View File
@@ -317,11 +317,11 @@ let BuildCheckRow = (props) => {
datafieldname[0].value
].map((tenant, index) => {
console.log(
typeof tenant.pinswg_owners
typeof tenant.pinswg_owners_firstname
);
return typeof tenant.pinswg_owners !=
return typeof tenant.pinswg_owners_firstname !=
"undefined" ||
typeof tenant.pinswg_agriculturaltenantname !=
typeof tenant.pinswg_agriculturaltenantname_firstname !=
"undefined" ? (
<div
key={index}
@@ -330,8 +330,15 @@ let BuildCheckRow = (props) => {
}}
>
<div className="govuk-!-width-one-half">
{tenant.pinswg_agriculturaltenantname ||
tenant.pinswg_owners}
{tenant?.pinswg_agriculturaltenantname_firstname &&
tenant.pinswg_agriculturaltenantname_firstname +
" " +
tenant.pinswg_agriculturaltenantname_lastname}
{tenant?.pinswg_owners_firstname &&
tenant.pinswg_owners_firstname +
" " +
tenant.pinswg_owners_lastname}
</div>
<div className="govuk-!-width-one-half">
Served:{" "}