Skip to content

Commit

Permalink
Merge pull request #585 from bitzesty/dashboard-fix
Browse files Browse the repository at this point in the history
Check if deadlines are present before checking if they have passed
  • Loading branch information
DaniBitZesty authored Aug 24, 2023
2 parents 6d16152 + 0065ceb commit bba1d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/content_only/past_applications/_combined.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
.govuk-body class="govuk-!-font-weight-bold"
= application.nomination_name
small
- if award_year.winners_notify_date < Time.zone.now && application.awarded?
- if award_year.winners_notify_date&.past? && application.awarded?
| Successful
- if award_year.unsuccessful_notify_date < Time.zone.now && !application.awarded?
- if award_year.unsuccessful_notify_date&.past? && !application.awarded?
| Unsuccessful
- else
| Pending verdict
Expand Down

0 comments on commit bba1d79

Please sign in to comment.