Skip to content

Commit

Permalink
fix report page when no active deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
ranven committed Dec 6, 2024
1 parent 3f2d56a commit 9c556eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/components/ReportPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default () => {
year,
tempAnswers: answers,
oldAnswers,
draftYear: draftYear && draftYear.year,
deadline: nextDeadline,
draftYear: draftYear?.year ?? new Date().getFullYear(),
deadline: nextDeadline ?? new Date(),
form: filters.form,
})

Expand Down

0 comments on commit 9c556eb

Please sign in to comment.