mutliple raise reps defects dates or button not showing
This commit is contained in:
@@ -220,6 +220,8 @@ let MakeRepresentation = (props) => {
|
||||
const buildRepsArr = (detailsObj) => {
|
||||
let buildArr = [];
|
||||
|
||||
console.log(currentView.caseReference.appealType);
|
||||
|
||||
let todaysDate = new Date();
|
||||
|
||||
let startDate = new Date(detailsObj.pinswg_startdate);
|
||||
@@ -240,7 +242,8 @@ let MakeRepresentation = (props) => {
|
||||
todaysDate <= statementDueDate &&
|
||||
buildArr.push("Statement");
|
||||
|
||||
todaysDate >= statementDueDate &&
|
||||
currentView.caseReference.appealType != 846040004 &&
|
||||
todaysDate >= statementDueDate &&
|
||||
todaysDate <= finalCommentsDate &&
|
||||
buildArr.push("Final comments");
|
||||
|
||||
@@ -920,7 +923,8 @@ let MakeRepresentation = (props) => {
|
||||
<span className="govuk-body-s">
|
||||
{" "}
|
||||
{formatDates(
|
||||
detailsObj.pinswg_statementduedate
|
||||
detailsObj.pinswg_statementduedate ||
|
||||
detailsObj.pinswg_statementsduedate
|
||||
)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user