Skip to content

Commit

Permalink
Guard against rendering the rbd content without a future value
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-G committed Oct 17, 2023
1 parent 8870737 commit 3ac599a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@

<% else %>

<p class="govuk-body govuk-!-margin-top-2">
You’ll get a decision on your application by <%= @application_choice.reject_by_default_at.to_fs(:govuk_date) %>.
</p>
<% if @application_choice.reject_by_default_at&.future? %>
<p class="govuk-body govuk-!-margin-top-2">
You’ll get a decision on your application by <%= @application_choice.reject_by_default_at.to_fs(:govuk_date) %>.
</p>
<% end %>

<% end %>

Expand Down

0 comments on commit 3ac599a

Please sign in to comment.