reps questionnaire progress panel
This commit is contained in:
@@ -415,10 +415,9 @@ const CaseSummary = (props) => {
|
||||
<div className="govuk-grid-column-full">
|
||||
<div className="govuk-button-group">
|
||||
{_.has(detailsObj, "pinswg_startdate") &&
|
||||
hasEndDate &&
|
||||
showReps(
|
||||
detailsObj.pinswg_startdate,
|
||||
detailsObj.pinswg_representation_period_end_date
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
) && (
|
||||
<>
|
||||
<Link
|
||||
@@ -553,10 +552,9 @@ const CaseSummary = (props) => {
|
||||
<div className="govuk-grid-row">
|
||||
<div className="govuk-grid-column-full">
|
||||
{_.has(detailsObj, "pinswg_startdate") &&
|
||||
hasEndDate &&
|
||||
showRepsEnded(
|
||||
detailsObj.pinswg_startdate,
|
||||
detailsObj.pinswg_representation_period_end_date
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
) && (
|
||||
<div className="govuk-body">
|
||||
{t(
|
||||
@@ -564,7 +562,7 @@ const CaseSummary = (props) => {
|
||||
)}
|
||||
|
||||
{formatDates(
|
||||
detailsObj.pinswg_representation_period_end_date
|
||||
detailsObj.pinswg_finalcommentsduedate
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
@@ -1030,7 +1028,6 @@ const CaseSummary = (props) => {
|
||||
date = new Date(date.toDateString());
|
||||
const start = new Date(startDate);
|
||||
const end = new Date(endDate);
|
||||
|
||||
return date > start && date > end ? true : false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user