@@ -474,7 +474,7 @@ module.exports = router => {
474474 res . redirect ( '/record-vaccinations/patient-estimated-due-date-rsv-warning' )
475475
476476 // Pertussis is recommended between 16 weeks (112 days) and 32 weeks
477- } else if ( data . vaccinationToday == 'yes' && data . vaccine === "Pertussis " && numberOfDaysPregnant < 112 ) {
477+ } else if ( data . vaccinationToday == 'yes' && data . vaccine === "pertussis " && numberOfDaysPregnant < 112 ) {
478478 res . redirect ( '/record-vaccinations/patient-estimated-due-date-pertussis-warning' )
479479 } else {
480480 res . redirect ( '/record-vaccinations/consent' )
@@ -564,7 +564,7 @@ module.exports = router => {
564564
565565 } else {
566566
567- if ( ( data . vaccine === "COVID-19" ) || ( data . vaccine == "Flu " ) ) {
567+ if ( ( data . vaccine === "COVID-19" ) || ( data . vaccine == "flu " ) ) {
568568 if ( data . eligibility === "Healthcare worker" || data . eligibility . includes ( "Healthcare worker" ) ) {
569569 nextPage = "/record-vaccinations/healthcare-worker"
570570 } else {
@@ -770,7 +770,7 @@ module.exports = router => {
770770 redirectPath = "/record-vaccinations/add-batch"
771771 } else if ( ! vaccineBatch ) {
772772 redirectPath = "/record-vaccinations/batch?showError=yes"
773- } else if ( [ "COVID-19" , "Flu " , "RSV" ] . includes ( data . vaccine ) ) {
773+ } else if ( [ "COVID-19" , "flu " , "RSV" ] . includes ( data . vaccine ) ) {
774774 redirectPath = "/record-vaccinations/eligibility"
775775 } else if ( data . repeatPatient === "yes" ) {
776776 redirectPath = "/record-vaccinations/patient-estimated-due-date"
@@ -816,7 +816,7 @@ module.exports = router => {
816816
817817 if ( data . newBatchNumber === '' || data . newBatchExpiryDate ?. day === '' || data . newBatchExpiryDate ?. month === '' || data . newBatchExpiryDate ?. year === '' ) {
818818 nextPage = "/record-vaccinations/add-batch?showErrors=yes"
819- } else if ( data . vaccine === "Pertussis " ) {
819+ } else if ( data . vaccine === "pertussis " ) {
820820 nextPage = "/record-vaccinations/patient"
821821 } else {
822822 nextPage = "/record-vaccinations/eligibility"
0 commit comments