Skip to content

Commit

Permalink
added missing go-app
Browse files Browse the repository at this point in the history
  • Loading branch information
Mudiwa Matanda authored and Mudiwa Matanda committed Oct 30, 2024
1 parent d76a047 commit 545472c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go-app-ussd_clinic_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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."
);
}
Expand Down

0 comments on commit 545472c

Please sign in to comment.