Skip to content

Commit db11877

Browse files
committed
Show correct header on child name page in clinic booking
The heading text and the caption vary based on number of children and the number of the current child. The previous code worked fine locally, but initially had both of those values still set to zero on Heroku resulting in being asked for the "next child" on the first time through. As I couldn't quickly work out why the values weren't making it through (logging showed they always were coming through, on localhost), I've changed the logic slightly to avoid obviously wrong text in the page title.
1 parent 6839162 commit db11877

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/book-into-a-clinic/form/child.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "_layouts/form.njk" %}
22

3-
{% if childNumber == 1 %}
3+
{% if childNumber < 2 %}
44
{% set title = __("clinicBooking.child.title.first") %}
55
{% else %}
66
{% set title = __("clinicBooking.child.title.next") %}

0 commit comments

Comments
 (0)