Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Buhle79 committed Aug 13, 2024
1 parent af12893 commit 4dff237
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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_month"
if (self.im.user.answers.state_message_type === "state_edd_year"
|| typeof self.im.user.answers.state_edd_month != "undefined") {
flow_uuid = self.im.config.prebirth_flow_uuid;
data.edd = new moment.utc(
Expand All @@ -1476,7 +1476,6 @@ go.app = function() {
"YYYYMMDD"
).format();
} else {
console.log("Post birth>>>>>>>");
flow_uuid = self.im.config.postbirth_flow_uuid;
data.baby_dob = new moment.utc(
self.im.user.answers.state_birth_month +
Expand Down Expand Up @@ -1515,7 +1514,6 @@ go.app = function() {
.then(function() {
return self.states.create("state_registration_complete");
}).catch(function(e) {
console.log(">>>>> ", e.message);
// Go to error state after 3 failed HTTP requests
opts.http_error_count = _.get(opts, "http_error_count", 0) + 1;
if (opts.http_error_count === 3) {
Expand Down

0 comments on commit 4dff237

Please sign in to comment.