From b133dca25a267c3fa4ade05406c07a132d8962c7 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 2 Jan 2025 13:10:09 +0000 Subject: [PATCH] rep defect 13, 8, 20 --- components/case/representation/index.js | 10 ++++------ .../representation/representationCompleteSubmit.js | 10 +++++----- .../case/representation/representationElements.js | 5 ++--- .../representationLPAQuestionnaire_enforcement.js | 7 ++++--- .../representationLPAQuestionnaire_s78.js | 7 ++++--- 5 files changed, 19 insertions(+), 20 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 5abedbfb..b45db9ba 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -179,7 +179,6 @@ let MakeRepresentation = (props) => { ("0" + repDate.getMinutes()).slice(-2) + ":" + ("0" + repDate.getSeconds()).slice(-2) + - ":" + "_-_" + repCap + "_-_" + @@ -752,9 +751,8 @@ let MakeRepresentation = (props) => { props.props.accountDetails.accountDetails.emailaddress1, "siteAddress": detailsObj.pinswg_siteaddressline1 + - " " + - detailsObj.pinswg_siteaddressline2 + - " " + + (detailsObj.pinswg_siteaddressline2 != null && + " " + detailsObj.pinswg_siteaddressline2 + " ") + detailsObj.pinswg_siteaddresstown + " " + detailsObj.pinswg_siteaddresspostcode, @@ -956,8 +954,8 @@ let MakeRepresentation = (props) => { props.props.accountDetails.accountDetails.emailaddress1, "siteAddress": detailsObj.pinswg_siteaddressline1 + - " " + - detailsObj.pinswg_siteaddressline2 + + (detailsObj.pinswg_siteaddressline2 != null && + " " + detailsObj.pinswg_siteaddressline2 + " ") + " " + detailsObj.pinswg_siteaddresstown + " " + diff --git a/components/case/representation/representationCompleteSubmit.js b/components/case/representation/representationCompleteSubmit.js index 3497f1ba..2bee283a 100644 --- a/components/case/representation/representationCompleteSubmit.js +++ b/components/case/representation/representationCompleteSubmit.js @@ -90,7 +90,7 @@ const RepCompleteSubmit = (props) => { // "caseRef": props.props.currentView.caseReference.currentReference, // }); - console.log("///////// repFormData:", repFormData); + //console.log("///////// repFormData:", repFormData); const whichQuestionnaireCheck = () => { { @@ -153,10 +153,10 @@ const RepCompleteSubmit = (props) => { }); } - console.log( - buildAppealFilesArray, - formObj.representationForm.values.filesList - ); + // console.log( + // buildAppealFilesArray, + // formObj.representationForm.values.filesList + // ); // buildAppealFilesArray = formObj.representationForm.values.hasOwnProperty( // "filesList" diff --git a/components/case/representation/representationElements.js b/components/case/representation/representationElements.js index 10e5e7bf..6605b1bc 100644 --- a/components/case/representation/representationElements.js +++ b/components/case/representation/representationElements.js @@ -287,9 +287,8 @@ export const RenderCondtionalRadioList = ({
- e.g. ‘Owners of Numbers 1-5 High Street‘, or - ‘Mr and Mrs Smith‘ or ‘The executors - of Mr Evans‘ estate‘ + e.g. "Owners of Numbers 1-5 High Street", or "Mr and Mrs + Smith" or "The executors of Mr Evans" estate"
{Object.keys(options).map((key, index) => ( diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js index 7f463704..376f8375 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js @@ -114,9 +114,10 @@ let Enforcement_Questionnaire = (props) => {
3. {t("myrepresentations:enf-section-question-3")}:{" "} {detailsObj.pinswg_siteaddressline1 + - " " + - detailsObj.pinswg_siteaddressline2 + - " " + + (detailsObj.pinswg_siteaddressline2 != null && + " " + + detailsObj.pinswg_siteaddressline2 + + " ") + detailsObj.pinswg_siteaddresstown + " " + detailsObj.pinswg_siteaddresspostcode} diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js index 11380192..3e0dd819 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js @@ -134,9 +134,10 @@ let S78_Questionnaire = (props) => {
3. {t("myrepresentations:s78-section-question-3")}{" "} {detailsObj.pinswg_siteaddressline1 + - " " + - detailsObj.pinswg_siteaddressline2 + - " " + + (detailsObj.pinswg_siteaddressline2 != null && + " " + + detailsObj.pinswg_siteaddressline2 + + " ") + detailsObj.pinswg_siteaddresstown + " " + detailsObj.pinswg_siteaddresspostcode}