Merged PR 2442: remove lodash dependecies on _.has
Related work items: #23754
This commit is contained in:
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_advertsid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -192,7 +193,7 @@ const Pinswg_advertsid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -231,7 +232,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -239,7 +240,7 @@ const Pinswg_advertsid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -256,7 +257,7 @@ const Pinswg_advertsid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -275,7 +276,7 @@ const Pinswg_advertsid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -288,7 +289,7 @@ const Pinswg_advertsid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -325,7 +326,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -341,7 +342,7 @@ const Pinswg_advertsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_callinss77id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -233,7 +234,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -253,7 +254,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateexportedtoiss"
|
||||
)
|
||||
@@ -275,7 +276,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementsduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementsduedate
|
||||
)
|
||||
@@ -293,7 +294,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -306,7 +307,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -327,7 +328,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -368,7 +369,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_callinss77id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_commonlandid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementsduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementsduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -350,7 +351,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -371,7 +372,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -388,7 +389,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_starttimeoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_starttimeoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_starttimeoftheevent
|
||||
)
|
||||
@@ -404,7 +405,7 @@ const Pinswg_commonlandid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -233,7 +234,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -246,7 +247,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -268,7 +269,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -285,7 +286,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -302,7 +303,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -318,7 +319,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -5,6 +5,7 @@ import { useRouter } from "next/router";
|
||||
import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -155,7 +156,9 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -219,7 +222,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -227,7 +230,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -244,7 +247,10 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_questionnaireduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -261,7 +267,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -280,7 +286,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -293,7 +299,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -315,7 +321,10 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_finalcommentsduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -335,7 +344,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -356,7 +365,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -373,7 +382,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -389,7 +398,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
import MapComponent from "../../mapping/";
|
||||
|
||||
@@ -243,7 +244,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-case-officer-label"
|
||||
)}
|
||||
value={
|
||||
_.has(casesObj, "_ownerid_value")
|
||||
hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -276,7 +277,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-start-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdateofevent"
|
||||
)
|
||||
@@ -299,7 +300,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -355,7 +356,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -381,7 +382,7 @@ const Pinswg_dnsid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -447,7 +448,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -470,7 +471,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
@@ -493,7 +494,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -516,7 +517,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -534,7 +535,7 @@ const Pinswg_dnsid = (props) => {
|
||||
)
|
||||
}
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
) &&
|
||||
@@ -558,7 +559,7 @@ const Pinswg_dnsid = (props) => {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
) &&
|
||||
@@ -587,7 +588,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -606,7 +607,7 @@ const Pinswg_dnsid = (props) => {
|
||||
}
|
||||
/>
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
) &&
|
||||
@@ -631,14 +632,14 @@ const Pinswg_dnsid = (props) => {
|
||||
/>
|
||||
)}
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_confirmrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -664,14 +665,14 @@ const Pinswg_dnsid = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_rejectrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -697,7 +698,7 @@ const Pinswg_dnsid = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
) &&
|
||||
@@ -727,7 +728,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -748,7 +749,7 @@ const Pinswg_dnsid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-report-due-by")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -769,7 +770,7 @@ const Pinswg_dnsid = (props) => {
|
||||
{/* <SummaryRow
|
||||
label={t("case:summary-suspension-dates")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -792,7 +793,7 @@ const Pinswg_dnsid = (props) => {
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -810,7 +811,7 @@ const Pinswg_dnsid = (props) => {
|
||||
)
|
||||
}
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
) &&
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_electricityactid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -133,7 +134,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
{" "}
|
||||
{/* {casesObj.caseDetails.caseOfficer ||
|
||||
""} */}
|
||||
{_.has(casesObj, "_ownerid_value")
|
||||
{hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -244,7 +245,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -336,7 +337,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casedecisiondate"
|
||||
)
|
||||
@@ -383,7 +384,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
)
|
||||
@@ -406,7 +407,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
)
|
||||
@@ -429,7 +430,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
)
|
||||
@@ -452,7 +453,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -475,7 +476,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
)
|
||||
@@ -498,7 +499,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -521,7 +522,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateprojectpublishedonwebsite"
|
||||
)
|
||||
@@ -544,7 +545,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -567,7 +568,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -590,7 +591,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -613,7 +614,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_procedureconfirmed"
|
||||
)
|
||||
@@ -636,7 +637,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
)
|
||||
@@ -657,7 +658,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-report-due-by")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -680,7 +681,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-suspension-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -703,7 +704,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -726,7 +727,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
)
|
||||
@@ -749,7 +750,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -770,7 +771,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-withdrawn-date")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
)
|
||||
@@ -793,7 +794,7 @@ const Pinswg_electricityactid = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -325,7 +326,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -346,7 +347,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -363,7 +364,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -379,7 +380,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_environmentalpermittingid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -367,7 +368,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_environmentalpermittingid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_harbourrevisionorderid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -133,7 +134,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
{" "}
|
||||
{/* {casesObj.caseDetails.caseOfficer ||
|
||||
""} */}
|
||||
{_.has(casesObj, "_ownerid_value")
|
||||
{hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -223,7 +224,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -315,7 +316,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -338,7 +339,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casedecisiondate"
|
||||
)
|
||||
@@ -362,7 +363,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
)
|
||||
@@ -385,7 +386,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
)
|
||||
@@ -408,7 +409,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
)
|
||||
@@ -431,7 +432,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -454,7 +455,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
)
|
||||
@@ -477,7 +478,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -500,7 +501,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateprojectpublishedonwebsite"
|
||||
)
|
||||
@@ -523,7 +524,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -546,7 +547,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -569,7 +570,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -592,7 +593,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_procedureconfirmed"
|
||||
)
|
||||
@@ -615,7 +616,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
)
|
||||
@@ -636,7 +637,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-report-due-by")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -659,7 +660,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-suspension-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -682,7 +683,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -705,7 +706,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
)
|
||||
@@ -728,7 +729,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -749,7 +750,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-withdrawn-date")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
)
|
||||
@@ -772,7 +773,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -191,7 +192,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -255,7 +256,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -263,7 +264,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -280,7 +281,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -297,7 +298,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -316,7 +317,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -329,7 +330,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -351,7 +352,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -368,7 +369,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -388,7 +389,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -405,7 +406,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -421,7 +422,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_householderappealhasid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -151,7 +152,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -190,7 +191,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -198,7 +199,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -215,7 +216,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -232,7 +233,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_otherpartiesstmt")
|
||||
hasOwn(detailsObj, "pinswg_otherpartiesstmt")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_otherpartiesstmt
|
||||
)
|
||||
@@ -261,7 +262,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstmt"
|
||||
)
|
||||
@@ -280,7 +281,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -297,7 +298,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -313,7 +314,7 @@ const Pinswg_householderappealhasid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_ldpid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -153,7 +154,7 @@ const Pinswg_ldpid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -192,7 +193,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -200,7 +201,7 @@ const Pinswg_ldpid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -217,7 +218,7 @@ const Pinswg_ldpid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -234,7 +235,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -253,7 +254,7 @@ const Pinswg_ldpid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -266,7 +267,7 @@ const Pinswg_ldpid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -288,7 +289,7 @@ const Pinswg_ldpid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_ldpid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -325,7 +326,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -358,7 +359,7 @@ const Pinswg_ldpid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_starttimeofevent")
|
||||
hasOwn(detailsObj, "pinswg_starttimeofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_starttimeofevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_maintenanceoflands217id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -367,7 +368,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_nonvalidationid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -120,7 +121,7 @@ const Pinswg_nonvalidationid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_validdate")
|
||||
hasOwn(detailsObj, "pinswg_validdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_validdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_validdate
|
||||
@@ -128,7 +129,7 @@ const Pinswg_nonvalidationid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -143,7 +144,7 @@ const Pinswg_nonvalidationid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_decisionissueddate")
|
||||
hasOwn(detailsObj, "pinswg_decisionissueddate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_decisionissueddate
|
||||
)
|
||||
|
||||
@@ -5,7 +5,11 @@ import { useRouter } from "next/router";
|
||||
import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayValue, getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import {
|
||||
getCaseLpaDisplayValue,
|
||||
getCaseLpaDisplayLines
|
||||
} from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_planningappeals78id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +174,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
@@ -189,7 +193,9 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -228,7 +234,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -236,7 +242,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -253,7 +259,10 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_questionnaireduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -272,7 +281,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-statement-interested-party-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -291,7 +300,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -304,7 +313,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -326,7 +335,10 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-final-comments-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_finalcommentsduedate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -344,7 +356,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -365,7 +377,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
{/* <SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -387,7 +399,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdatetimeiftheevent"
|
||||
)
|
||||
@@ -410,7 +422,7 @@ const Pinswg_planningappeals78id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-time-label")}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdatetimeiftheevent"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_planningconditionss73s79id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -323,7 +324,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -344,7 +345,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -361,7 +362,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -377,7 +378,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_planningobligationappeals106id = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -209,7 +210,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -217,7 +218,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -234,7 +235,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -251,7 +252,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -270,7 +271,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -283,7 +284,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -305,7 +306,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -322,7 +323,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -342,7 +343,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -359,7 +360,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_rowid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -191,7 +192,7 @@ const Pinswg_rowid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -255,7 +256,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -263,7 +264,7 @@ const Pinswg_rowid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -280,7 +281,7 @@ const Pinswg_rowid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -297,7 +298,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -316,7 +317,7 @@ const Pinswg_rowid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -329,7 +330,7 @@ const Pinswg_rowid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -351,7 +352,7 @@ const Pinswg_rowid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -368,7 +369,7 @@ const Pinswg_rowid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -388,7 +389,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -405,7 +406,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateoftheevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateoftheevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateoftheevent
|
||||
)
|
||||
@@ -421,7 +422,7 @@ const Pinswg_rowid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
import MapComponent from "../../mapping";
|
||||
|
||||
@@ -315,7 +316,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-case-officer-label"
|
||||
)}
|
||||
value={
|
||||
_.has(casesObj, "_ownerid_value")
|
||||
hasOwn(casesObj, "_ownerid_value")
|
||||
? casesObj[
|
||||
"_ownerid_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
@@ -349,7 +350,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_startdateofevent"
|
||||
)
|
||||
@@ -375,7 +376,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -431,7 +432,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -457,7 +458,7 @@ const Pinswg_sipscase = (props) => {
|
||||
)}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
{hasOwn(casesObj, [
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
@@ -570,7 +571,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmit"
|
||||
)
|
||||
@@ -593,7 +594,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
@@ -616,7 +617,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -665,7 +666,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-validation-deadline-extension"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validationdeadlineextension"
|
||||
)
|
||||
@@ -693,7 +694,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-case-suspension-start-date"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casesuspensionstartdate"
|
||||
)
|
||||
@@ -721,7 +722,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-case-suspension-end-date"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casesuspensionenddate"
|
||||
)
|
||||
@@ -772,7 +773,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-report-issued-to-welsh-ministers"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportissuedtowelshministers"
|
||||
)
|
||||
@@ -800,7 +801,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-decision-issued-to-applicant"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_decisionissuedtoapplicant"
|
||||
)
|
||||
@@ -828,7 +829,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-decision-outcome"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_decisionoutcome"
|
||||
)
|
||||
@@ -872,7 +873,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-post-decision-redetermination-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_redetermination@OData.Community.Display.V1.FormattedValue"
|
||||
)
|
||||
@@ -902,7 +903,7 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-post-decision-redetermination-deadline-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_redeterminationconsultationdeadline"
|
||||
)
|
||||
@@ -937,7 +938,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_screeningstartdate"
|
||||
)
|
||||
@@ -963,7 +964,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_eiatargetdate"
|
||||
)
|
||||
@@ -994,7 +995,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_targetextended"
|
||||
)
|
||||
@@ -1021,7 +1022,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_directionissueddate"
|
||||
)
|
||||
@@ -1054,7 +1055,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_eiarequired"
|
||||
)
|
||||
@@ -1089,7 +1090,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingstartdate"
|
||||
)
|
||||
@@ -1115,7 +1116,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingtargetdate"
|
||||
)
|
||||
@@ -1145,7 +1146,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingtargetextended"
|
||||
)
|
||||
@@ -1172,7 +1173,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_scopingoutcomeissueddate"
|
||||
)
|
||||
@@ -1203,7 +1204,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -1223,7 +1224,7 @@ const Pinswg_sipscase = (props) => {
|
||||
}
|
||||
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
) &&
|
||||
@@ -1252,7 +1253,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
/>
|
||||
)}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
) &&
|
||||
@@ -1289,7 +1290,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -1310,7 +1311,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
/>
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
) &&
|
||||
@@ -1340,14 +1341,14 @@ const Pinswg_sipscase = (props) => {
|
||||
/>
|
||||
)}
|
||||
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_confirmrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -1378,14 +1379,14 @@ const Pinswg_sipscase = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
) &&
|
||||
!_.isEmpty(
|
||||
detailsObj.pinswg_rejectrequesttovaryapplication
|
||||
) &&
|
||||
(_.has(
|
||||
(hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
) &&
|
||||
@@ -1416,7 +1417,7 @@ const Pinswg_sipscase = (props) => {
|
||||
) : (
|
||||
""
|
||||
))}
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
) &&
|
||||
@@ -1457,7 +1458,7 @@ const Pinswg_sipscase = (props) => {
|
||||
value={
|
||||
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -1485,7 +1486,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -1511,7 +1512,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -1539,7 +1540,7 @@ const Pinswg_sipscase = (props) => {
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -1559,7 +1560,7 @@ const Pinswg_sipscase = (props) => {
|
||||
}
|
||||
|
||||
/>
|
||||
{_.has(
|
||||
{hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
) &&
|
||||
|
||||
@@ -5,6 +5,7 @@ import { useRouter } from "next/router";
|
||||
import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_transportandworkactid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -62,11 +63,10 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
|
||||
<dl className="govuk-summary-list govuk-!-font-size-16 govuk-!-margin-bottom-9">
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-case-type-label")}
|
||||
|
||||
label={t(
|
||||
"case:summary-case-type-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
@@ -76,7 +76,7 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
] +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: casesObj[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
@@ -84,18 +84,13 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-eia-required-label"
|
||||
)}
|
||||
|
||||
"case:summary-eia-required-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath(
|
||||
'$..[?(@.value=="' +
|
||||
@@ -111,22 +106,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
t(
|
||||
"case:summary-to-be-confirmed-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
|
||||
<SummaryRow
|
||||
|
||||
|
||||
label={t(
|
||||
"case:summary-case-recommendation-label"
|
||||
)}
|
||||
|
||||
|
||||
"case:summary-case-recommendation-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
@@ -134,27 +121,20 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
detailsObj.pinswg_recommendation +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: detailsObj.pinswg_recommendation ||
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/>
|
||||
{detailsObj.pinswg_webaddress != null && (
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-case-website-label"
|
||||
)}
|
||||
|
||||
"case:summary-case-website-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
@@ -162,15 +142,13 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
detailsObj.pinswg_webaddress +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: detailsObj.pinswg_webaddress ||
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
)}
|
||||
</dl>
|
||||
@@ -185,12 +163,11 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
</h3>
|
||||
<dl className="govuk-summary-list govuk-!-font-size-16 govuk-!-margin-bottom-9">
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-event-date-label")}
|
||||
|
||||
label={t(
|
||||
"case:summary-event-date-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateeventrequested"
|
||||
)
|
||||
@@ -206,19 +183,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
|
||||
"case:summary-decision-date-label"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casedecisiondate"
|
||||
)
|
||||
@@ -234,23 +206,15 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
|
||||
<SummaryRow
|
||||
|
||||
|
||||
label={t(
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
|
||||
|
||||
"case:summary-application-accepted-as-valid"
|
||||
)}
|
||||
value={
|
||||
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationacceptedasvalid"
|
||||
)
|
||||
@@ -266,21 +230,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
|
||||
"case:summary-application-rejected-as-invalid"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_applicationrejectedasinvalid"
|
||||
)
|
||||
@@ -296,19 +253,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
|
||||
"case:summary-confirm-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_confirmrequesttovaryapplication"
|
||||
)
|
||||
@@ -324,19 +276,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
|
||||
"case:summary-date-of-decisions"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofdecision"
|
||||
)
|
||||
@@ -352,19 +299,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
|
||||
"case:summary-date-of-request-to-vary"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofrequesttovarytheapplication"
|
||||
)
|
||||
@@ -380,19 +322,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
|
||||
"case:summary-date-of-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateofsubmissionofapplication"
|
||||
)
|
||||
@@ -408,19 +345,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
|
||||
"case:summary-date-project-published-to-website"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_dateprojectpublishedonwebsite"
|
||||
)
|
||||
@@ -436,19 +368,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
|
||||
"case:summary-deadline-for-submission-of-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_deadlineforsubmissionofapplication"
|
||||
)
|
||||
@@ -464,19 +391,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
|
||||
"case:summary-end-of-representation-period"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofrepresentationperiod"
|
||||
)
|
||||
@@ -492,19 +414,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
|
||||
"case:summary-inspector-report-submission-to-welsh-government"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_inspectorreportsubmittedtowelshgovernment"
|
||||
)
|
||||
@@ -520,19 +437,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
|
||||
"case:summary-procedure-confirmed"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_procedureconfirmed"
|
||||
)
|
||||
@@ -548,19 +460,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
|
||||
"case:summary-reject-request-to-vary-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_rejectrequesttovaryapplication"
|
||||
)
|
||||
@@ -576,17 +483,12 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-report-due-by")}
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdueby"
|
||||
)
|
||||
@@ -602,17 +504,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-suspension-dates")}
|
||||
|
||||
label={t(
|
||||
"case:summary-suspension-dates"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensiondates"
|
||||
)
|
||||
@@ -628,19 +527,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
|
||||
"case:summary-suspension-end-dates"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionenddates"
|
||||
)
|
||||
@@ -656,19 +550,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
|
||||
"case:summary-suspension-start-dates"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_suspensionstartdates"
|
||||
)
|
||||
@@ -684,19 +573,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
|
||||
"case:summary-valid-notice-of-intention-to-submit-an-application"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_validnoticeofintentiontosubmitanapplicati"
|
||||
)
|
||||
@@ -712,17 +596,12 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t("case:summary-withdrawn-date")}
|
||||
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_withdrawndate"
|
||||
)
|
||||
@@ -738,19 +617,14 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
<SummaryRow
|
||||
|
||||
label={t(
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
|
||||
"case:summary-written-acceptance-of-notice"
|
||||
)}
|
||||
value={
|
||||
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_writtenacceptanceofnotification"
|
||||
)
|
||||
@@ -766,9 +640,7 @@ const Pinswg_transportandworkactid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
@@ -6,6 +6,7 @@ import transLookup from "../../../data/lookuptranslations.json";
|
||||
import SummaryCard from "../summary/components/SummaryCard";
|
||||
import SummaryRow from "../summary/components/SummaryRow";
|
||||
import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue";
|
||||
import { hasOwn } from "../../utils";
|
||||
|
||||
const Pinswg_wayleaveid = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -170,7 +171,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
{t("case:summary-case-link-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, ["numberofchildincidents"])
|
||||
{hasOwn(casesObj, ["numberofchildincidents"])
|
||||
? casesObj.numberofchildincidents > 0
|
||||
? t(
|
||||
"case:summary-case-link-status-linked"
|
||||
@@ -234,7 +235,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdate")
|
||||
hasOwn(detailsObj, "pinswg_startdate")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdate)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdate
|
||||
@@ -242,7 +243,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(detailsObj, "pinswg_startdates")
|
||||
: hasOwn(detailsObj, "pinswg_startdates")
|
||||
? !_.isEmpty(detailsObj.pinswg_startdates)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_startdates
|
||||
@@ -259,7 +260,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
"case:summary-questionnaire-due-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_questionnaireduedate")
|
||||
hasOwn(detailsObj, "pinswg_questionnaireduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_questionnaireduedate
|
||||
)
|
||||
@@ -276,7 +277,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-statement-due-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_statementduedate")
|
||||
hasOwn(detailsObj, "pinswg_statementduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_statementduedate
|
||||
)
|
||||
@@ -295,7 +296,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
"case:summary-interested-party-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatement"
|
||||
)
|
||||
@@ -308,7 +309,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)
|
||||
: _.has(
|
||||
: hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_otherpartiesstatements"
|
||||
)
|
||||
@@ -330,7 +331,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
"case:summary-applicant-final-comments-date-label"
|
||||
)}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_finalcommentsduedate")
|
||||
hasOwn(detailsObj, "pinswg_finalcommentsduedate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)
|
||||
@@ -347,7 +348,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
label={t(
|
||||
"case:summary-inquiry-evidence-date-label"
|
||||
)}
|
||||
value={_.has(
|
||||
value={hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_proofsofevidencewrittenstatementsofeviden"
|
||||
)
|
||||
@@ -367,7 +368,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_dateeventrequested")
|
||||
hasOwn(detailsObj, "pinswg_dateeventrequested")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_dateeventrequested
|
||||
)
|
||||
@@ -384,7 +385,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-start-event-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_startdateofevent")
|
||||
hasOwn(detailsObj, "pinswg_startdateofevent")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_startdateofevent
|
||||
)
|
||||
@@ -400,7 +401,7 @@ const Pinswg_wayleaveid = (props) => {
|
||||
<SummaryRow
|
||||
label={t("case:summary-decision-date-label")}
|
||||
value={
|
||||
_.has(detailsObj, "pinswg_casedecisiondate")
|
||||
hasOwn(detailsObj, "pinswg_casedecisiondate")
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casedecisiondate
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user