Skip to content

Commit

Permalink
Merge pull request #604 from praekeltfoundation/TBH-711-bug-copy-mism…
Browse files Browse the repository at this point in the history
…atch-after-completing-screening

Tbh 711 bug copy mismatch after completing screening
  • Loading branch information
Buhle79 authored Oct 10, 2023
2 parents 9e135e7 + c103f05 commit c19d86b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go-app-ussd_tb_check.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ go.app = function () {
msisdn: msisdn,
source: "USSD",
language: answers.state_language,
province: answers.state_province ? answers.state_province : "",
province: answers.state_province ? answers.state_province : null,
city: answers.state_city ? answers.state_city : "<not collected>",
age: answers.state_age,
gender: answers.state_gender,
Expand Down
2 changes: 1 addition & 1 deletion src/ussd_tb_check.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ go.app = function () {
msisdn: msisdn,
source: "USSD",
language: answers.state_language,
province: answers.state_province ? answers.state_province : "",
province: answers.state_province ? answers.state_province : null,
city: answers.state_city ? answers.state_city : "<not collected>",
age: answers.state_age,
gender: answers.state_gender,
Expand Down
4 changes: 2 additions & 2 deletions test/ussd_tb_check.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,7 @@ describe("ussd_tb_check app", function () {
});
});
describe("state_no_province", function () {
it("go to state_complete for valid answer and assign to blank for null province", function () {
it("go to state_complete for valid answer and assign to null for non province", function () {
return tester.setup.user
.state("state_opt_in")
.setup.user.answers({
Expand All @@ -2547,7 +2547,7 @@ describe("ussd_tb_check app", function () {
msisdn: "+27123456789",
source: "USSD",
language: "eng",
province: "",
province: null,
city: "JHB",
age: "<18",
gender: "male",
Expand Down

0 comments on commit c19d86b

Please sign in to comment.