Skip to content

Commit

Permalink
Removing code smell and increasing test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ttingle-ch committed Jan 23, 2025
1 parent 25ea510 commit 2dee375
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/where-do-you-live/whereDoYouLive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ export class WhereDoYouLivBodyService {
return payload;
}

switch (ascpData.applicantDetails?.countryOfResidence) {
switch (ascpData.applicantDetails.countryOfResidence) {
case "England":
case "Scotland":
case "Wales":
case "Northern Ireland":
payload = { whereDoYouLiveRadio: ascpData?.applicantDetails?.countryOfResidence };
payload = { whereDoYouLiveRadio: ascpData.applicantDetails?.countryOfResidence };
break;
default:
payload = {
whereDoYouLiveRadio: "countryOutsideUK",
countryInput: ascpData.applicantDetails?.countryOfResidence
countryInput: ascpData.applicantDetails.countryOfResidence
};
};
}
return payload;
}
}

0 comments on commit 2dee375

Please sign in to comment.