Skip to content

Commit

Permalink
fix report page for form 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ranven committed Dec 9, 2024
1 parent a7249ea commit 3fdeebd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions client/components/ReportPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ export default () => {
year,
tempAnswers: answers,
oldAnswers,
draftYear: draftYear && draftYear.year,
deadline: nextDeadline,
...(filters.form === formKeys.FACULTY_MONITORING
? {
// faculty monitoring is designed to be always ongoing but the form may be closed at times, hence this current year fallback
draftYear: draftYear?.year ?? new Date().getFullYear(),
deadline: nextDeadline ?? new Date(),
}
: {
draftYear: draftYear?.year,
deadline: nextDeadline,
}),
form: filters.form,
})

Expand Down

0 comments on commit 3fdeebd

Please sign in to comment.