updated to allow new appeals to work post ph merge
This commit is contained in:
@@ -6,17 +6,17 @@ import { parseCookies } from "nookies";
|
||||
import { connect } from "react-redux";
|
||||
import {
|
||||
deleteAwaitingSubmissionsFromBlob,
|
||||
getAwaitingSubmissionFromBlobProxy,
|
||||
getAwaitingSubmissionFromBlobProxy
|
||||
} from "../../actions";
|
||||
import { getFormCollectionByID } from "../../components/utils";
|
||||
import transLookup from "../../data/lookuptranslations.json";
|
||||
import {
|
||||
setAwaitingSubmissionDetails,
|
||||
setAwaitingSubmissionFromBlob,
|
||||
setAwaitingSubmissionFromBlob
|
||||
} from "../../store/awaitingSubmission/action";
|
||||
import {
|
||||
setCurrentReference,
|
||||
setCurrentView,
|
||||
setCurrentView
|
||||
} from "../../store/currentView/action";
|
||||
|
||||
const AwaitingSubmissionFromBlob = (props) => {
|
||||
@@ -149,7 +149,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
|
||||
"appealType":
|
||||
showTopThreeArr[key]
|
||||
.pinswg_appealcasetype,
|
||||
.pinswg_appealcasetype
|
||||
});
|
||||
}}
|
||||
>
|
||||
@@ -195,7 +195,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:lpa-reference-label")}:</b>{" "}
|
||||
{
|
||||
showTopThreeArr[key]
|
||||
showTopThreeArrDets[key]
|
||||
.pinswg_lpaapplicationreference
|
||||
}
|
||||
</div>
|
||||
@@ -211,7 +211,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
).value +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: getFormCollectionByID(
|
||||
showTopThreeArr[key]
|
||||
@@ -223,32 +223,38 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
{_.isEmpty(showTopThreeArr)
|
||||
? t("myportal:case-address-not-entered")
|
||||
: _.isEmpty(showTopThreeArr[index])
|
||||
? t("myportal:case-address-not-entered")
|
||||
: _.isEmpty(showTopThreeArr[index])
|
||||
? t("myportal:case-address-not-entered")
|
||||
: _.isEmpty(
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddressline1
|
||||
)
|
||||
? t("myportal:case-address-not-entered")
|
||||
: showTopThreeArr[index]
|
||||
.pinswg_siteaddressline1 +
|
||||
(!_.isEmpty(
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddressline2
|
||||
)
|
||||
? ", " +
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddressline2
|
||||
: "") +
|
||||
(!_.isEmpty(
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddresstown
|
||||
)
|
||||
? ", " +
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddresstown
|
||||
: "")}
|
||||
? t(
|
||||
"myportal:case-address-not-entered"
|
||||
)
|
||||
: _.isEmpty(showTopThreeArr[index])
|
||||
? t(
|
||||
"myportal:case-address-not-entered"
|
||||
)
|
||||
: _.isEmpty(
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddressline1
|
||||
)
|
||||
? t(
|
||||
"myportal:case-address-not-entered"
|
||||
)
|
||||
: showTopThreeArr[index]
|
||||
.pinswg_siteaddressline1 +
|
||||
(!_.isEmpty(
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddressline2
|
||||
)
|
||||
? ", " +
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddressline2
|
||||
: "") +
|
||||
(!_.isEmpty(
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddresstown
|
||||
)
|
||||
? ", " +
|
||||
showTopThreeArr[index]
|
||||
.pinswg_siteaddresstown
|
||||
: "")}
|
||||
</div>
|
||||
{showTopThreeArr[key].pinswg_appellantagent !=
|
||||
null && (
|
||||
@@ -257,7 +263,8 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
.pinswg_appellantagent !=
|
||||
846040000 && (
|
||||
<b>
|
||||
{t("myportal:raised-by-label")}:{" "}
|
||||
{t("myportal:raised-by-label")}
|
||||
:{" "}
|
||||
</b>
|
||||
)}
|
||||
{showTopThreeArr[key]
|
||||
@@ -280,7 +287,8 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
846040000 && (
|
||||
<div className="cardModuleReference">
|
||||
<b>
|
||||
{t("myportal:on-behalf-of-label")}:{" "}
|
||||
{t("myportal:on-behalf-of-label")}
|
||||
:{" "}
|
||||
</b>
|
||||
{showTopThreeArr[key]
|
||||
.pinswg_appellantfirstname +
|
||||
@@ -303,7 +311,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
] +
|
||||
'")].value_cy',
|
||||
json: transLookup,
|
||||
eval: true,
|
||||
eval: true
|
||||
})
|
||||
: showTopThreeArr[key][
|
||||
"pinswg_lpaname"
|
||||
@@ -361,7 +369,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
onClick={() => {
|
||||
setCurrentView({
|
||||
"viewName": "Awaiting Submission",
|
||||
"viewKey": "awaitingSubmissionDetails",
|
||||
"viewKey": "awaitingSubmissionDetails"
|
||||
});
|
||||
}}
|
||||
>
|
||||
@@ -387,7 +395,7 @@ const mapDispatchToProps = (dispatch) => {
|
||||
},
|
||||
setAwaitingSubmissionDetails: (awaitingSubmissionDetails) => {
|
||||
dispatch(setAwaitingSubmissionDetails(awaitingSubmissionDetails));
|
||||
},
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user