Skip to content

Commit

Permalink
revert changes for ussd clinic
Browse files Browse the repository at this point in the history
  • Loading branch information
Buhle79 committed Aug 14, 2024
1 parent b588220 commit fb1c5d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go-app-ussd_clinic_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ go.app = function() {
};
var flow_uuid;

if (self.im.user.answers.state_message_type === "state_edd_year"
if (self.im.user.answers.state_message_type === "state_edd_month"
|| typeof self.im.user.answers.state_edd_month != "undefined") {
flow_uuid = self.im.config.prebirth_flow_uuid;
data.edd = new moment.utc(
Expand Down
2 changes: 1 addition & 1 deletion src/ussd_clinic_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ go.app = function() {
};
var flow_uuid;

if (self.im.user.answers.state_message_type === "state_edd_year"
if (self.im.user.answers.state_message_type === "state_edd_month"
|| typeof self.im.user.answers.state_edd_month != "undefined") {
flow_uuid = self.im.config.prebirth_flow_uuid;
data.edd = new moment.utc(
Expand Down
2 changes: 1 addition & 1 deletion test/ussd_clinic_rapidpro.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ describe("ussd_clinic app", function() {
return tester
.setup.user.state("state_accept_popi_2")
.setup.user.answers({
state_message_type: "state_edd_year",
state_message_type: "state_edd_month",
state_research_consent: "no",
state_enter_msisdn: "0820001001",
state_id_type: "state_sa_id_no",
Expand Down

0 comments on commit fb1c5d2

Please sign in to comment.