logic to show reps button
This commit is contained in:
@@ -205,9 +205,19 @@ let MakeRepresentation = (props) => {
|
||||
const capacityOptionsArr = [
|
||||
t("myrepresentations:capacity-options-arr-appellant"),
|
||||
t("myrepresentations:capacity-options-arr-agent"),
|
||||
t("myrepresentations:capacity-options-arr-interested"),
|
||||
];
|
||||
|
||||
props.props.currentView.caseReference.appealType != 846040017
|
||||
? capacityOptionsArr.push(
|
||||
t("myrepresentations:capacity-options-arr-interested")
|
||||
)
|
||||
: props.props.currentView.caseReference.specialistProcess !=
|
||||
846040000 &&
|
||||
capacityOptionsArr.push(
|
||||
t("myrepresentations:capacity-options-arr-interested")
|
||||
);
|
||||
console.log(props.props.currentView);
|
||||
|
||||
let setCaseDetailsObj = router.query.hasOwnProperty("state")
|
||||
? router.query.state == "edit"
|
||||
? props.props.myRepresentations.myRepresentations
|
||||
@@ -290,7 +300,6 @@ let MakeRepresentation = (props) => {
|
||||
isLPA &&
|
||||
currentView.caseReference.appealType != 846040019 &&
|
||||
currentView.caseReference.appealType != 846040011 &&
|
||||
currentView.caseReference.appealType != 846040015 &&
|
||||
todaysDate >= startDate &&
|
||||
todaysDate <= questionnaireDate &&
|
||||
buildArr.push("Questionnaire");
|
||||
@@ -313,10 +322,12 @@ let MakeRepresentation = (props) => {
|
||||
todaysDate <= statementDueDate &&
|
||||
buildArr.push("Statement");
|
||||
|
||||
currentView.caseReference.appealType != 846040004 &&
|
||||
todaysDate >= statementDueDate &&
|
||||
todaysDate <= finalCommentsDate &&
|
||||
buildArr.push("Final comments");
|
||||
currentView.caseReference.appealType != 846040004 ||
|
||||
(currentView.caseReference.appealType == 846040004 &&
|
||||
currentView.caseReference.specialistProcess != 846040001 &&
|
||||
todaysDate >= statementDueDate &&
|
||||
todaysDate <= finalCommentsDate &&
|
||||
buildArr.push("Final comments"));
|
||||
|
||||
return buildArr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user