Skip to content

Commit b3c8154

Browse files
committed
Fix grammar in PSD eligibility message for singular case
Use pluralize helper to correctly display "There is 1 child" instead of "There are 1 child" when only one child is eligible for PSD creation.
1 parent 4b3ff2a commit b3c8154

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/views/sessions/patient_specific_directions/show.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
<%= govuk_inset_text do %>
2424
<span class="nhsuk-u-visually-hidden">Information: </span>
2525
<p class="nhsuk-body">
26-
There are <%= @eligible_for_bulk_psd_count %> children with consent for the nasal flu vaccine
27-
who do not require triage and do not yet have a PSD in place.
26+
There <%= @eligible_for_bulk_psd_count == 1 ? "is" : "are" %>
27+
<%= pluralize(@eligible_for_bulk_psd_count, "child") %> with consent for
28+
the nasal flu vaccine who do not require triage and do not yet have a PSD in place.
2829
</p>
2930

3031
<% if policy(PatientSpecificDirection).create? %>

0 commit comments

Comments
 (0)