From 545472cb6fd6d8553fce936071a57c23d1e2506d Mon Sep 17 00:00:00 2001 From: Mudiwa Matanda Date: Wed, 30 Oct 2024 12:39:48 +0200 Subject: [PATCH] added missing go-app --- go-app-ussd_clinic_rapidpro.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go-app-ussd_clinic_rapidpro.js b/go-app-ussd_clinic_rapidpro.js index c6d32041..71629383 100644 --- a/go-app-ussd_clinic_rapidpro.js +++ b/go-app-ussd_clinic_rapidpro.js @@ -911,10 +911,10 @@ go.app = function() { "Enter the day that baby was born as a number. For example if baby was born on 12th May, type in 12" ].join("\n")); } - if (!date.isBetween(current_date.clone().add(-2, "years"), current_date)) { + if (!date.isBetween(current_date.clone().add(-2, "years"), current_date.add(1, "days")) ) { return $( "Unfortunately MomConnect doesn't send messages to children older " + - "than 2 years. Please try again by entering the dat the baby was " + + "than 2 years. Please try again by entering the day the baby was " + "born as a number, e.g. 12." ); }