Skip to content

Commit dbc6cdb

Browse files
authored
Updates to error messages in record-vaccinations.js (#305)
Updated a few error messages to make sure they are the same in the prototype and in the dev environment.
1 parent 24e783f commit dbc6cdb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/routes/record-vaccinations.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = router => {
3535

3636
if (req.query.showErrors === 'yes') {
3737
if (!req.session.data.vaccinationToday) {
38-
vaccinationTodayError = 'Select if the vaccination was today'
38+
vaccinationTodayError = 'Select if the vaccination is today'
3939
}
4040
}
4141

@@ -177,7 +177,7 @@ module.exports = router => {
177177

178178
if (nhsNumber == '') {
179179
nhsNumberError = {
180-
text: "Enter NHS number",
180+
text: "Enter an NHS number",
181181
href: "#nhs-number"
182182
}
183183
errorList.push(nhsNumberError)
@@ -739,7 +739,7 @@ module.exports = router => {
739739
if (req.query.showErrors === 'yes') {
740740
if (!consent) {
741741
consentError = {
742-
text: "Select who gave consent",
742+
text: "Select who is giving consent",
743743
href: "#consent-1"
744744
}
745745
errors.push(consentError)
@@ -846,13 +846,13 @@ module.exports = router => {
846846

847847
if (!injectionSite) {
848848
injectionSiteError = {
849-
text: "Select the injection site",
849+
text: "Select where you gave the injection",
850850
href: "#injection-site-1"
851851
}
852852
errors.push(injectionSiteError)
853853
} else if (injectionSite === "other" && !otherInjectionSite) {
854854
otherInjectionSiteError = {
855-
text: "Select injection site",
855+
text: "Select where you gave the injection",
856856
href: "#other-injection-site-1"
857857
}
858858
errors.push(otherInjectionSiteError)

0 commit comments

Comments
 (0)