Skip to content

Commit bbc3d64

Browse files
committed
Add clearer error message for when Redundancy date is too far in the past
The original message was not very clear and caused confusion for both users entering out of range dates, and developers investigating unrelated issues. This new error text is designed to clarify the problem.
1 parent fc52da8 commit bbc3d64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/flows/calculate_your_redundancy_pay_flow/questions/date_of_redundancy.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
<% text_for :hint do %>
66
Use the original redundancy date even if your notice is brought forward, you’re paid in lieu of notice or made redundant after trialing a new job.
77
<% end %>
8+
9+
<% text_for :error_message do %>
10+
The date you were made redundant must be on or after <%= SmartAnswer::Calculators::RedundancyCalculator.first_selectable_date.strftime("%-d %B %Y") %>.
11+
<% end %>

0 commit comments

Comments
 (0)