Merged PR 2441: electricity shouldnt be showing reps available
electricity shouldnt be showing reps available Related work items: #24008
This commit is contained in:
@@ -72,6 +72,9 @@ export function getEntryCtaLabelKey(appealType) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function shouldSuppressBlockedMessage({ appealType, isLPA }) {
|
export function shouldSuppressBlockedMessage({ appealType, isLPA }) {
|
||||||
|
if (!canShowRepresentationButtonForAppealType(appealType)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return !isLPA && appealType == 846040004;
|
return !isLPA && appealType == 846040004;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ const RepsOnResults = (props) => {
|
|||||||
Object.prototype.hasOwnProperty.call(obj || {}, key);
|
Object.prototype.hasOwnProperty.call(obj || {}, key);
|
||||||
|
|
||||||
function showRepButton(appealType) {
|
function showRepButton(appealType) {
|
||||||
|
appealType = Number(appealType);
|
||||||
if (!canShowRepresentationButtonForAppealType(appealType)) {
|
if (!canShowRepresentationButtonForAppealType(appealType)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -90,33 +91,18 @@ const RepsOnResults = (props) => {
|
|||||||
detailsObj.pinswg_consultationclose
|
detailsObj.pinswg_consultationclose
|
||||||
)) && (
|
)) && (
|
||||||
<>
|
<>
|
||||||
{showRepButton(detailsObj.appealType) ? (
|
{showRepButton(Number(appealType)) ? (
|
||||||
<>
|
<div className="govuk-body govuk-!-font-size-14">
|
||||||
{/* <Link
|
{appealType == 846040002
|
||||||
href={{
|
? t("case:summary-consultation-open-label")
|
||||||
pathname:
|
: t(
|
||||||
"/myportal/representation",
|
"case:summary-representation-open-label"
|
||||||
query: {
|
)}{" "}
|
||||||
case: detailsObj.pinswg_name,
|
</div>
|
||||||
},
|
) : !canShowRepresentationButtonForAppealType(
|
||||||
}}
|
appealType
|
||||||
className="govuk-button"
|
) ||
|
||||||
>
|
(!isLPA && appealType == 846040004) ? (
|
||||||
{t(
|
|
||||||
"case:summary-make-representation-label"
|
|
||||||
)}
|
|
||||||
</Link> */}
|
|
||||||
<div className="govuk-body govuk-!-font-size-14">
|
|
||||||
{appealType == 846040002
|
|
||||||
? t(
|
|
||||||
"case:summary-consultation-open-label"
|
|
||||||
)
|
|
||||||
: t(
|
|
||||||
"case:summary-representation-open-label"
|
|
||||||
)}{" "}
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
) : !isLPA && appealType == 846040004 ? (
|
|
||||||
""
|
""
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user