Skip to content

Commit

Permalink
#982 | Use encounter.encounterType.displayName in ProgramEncounterCan…
Browse files Browse the repository at this point in the history
…celView.js
  • Loading branch information
himeshr committed May 29, 2023
1 parent 9aaa4ae commit cfe2a65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class ProgramEncounterCancelView extends AbstractComponent {

onSaveCallback(source, encounter) {
_.isNil(encounter.programEnrolment) ?
CHSNavigator.navigateToIndividualEncounterDashboardView(source, encounter.individual.uuid, encounter, true, null, this.I18n.t('encounterCancelledMsg', {encounterName: this.I18n.t(encounter.encounterType.operationalEncounterTypeName)})) :
CHSNavigator.navigateToProgramEnrolmentDashboardView(source, encounter.individual.uuid, encounter.programEnrolment.uuid, true, null, this.I18n.t('encounterCancelledMsg', {encounterName: this.I18n.t(encounter.encounterType.operationalEncounterTypeName)}));
CHSNavigator.navigateToIndividualEncounterDashboardView(source, encounter.individual.uuid, encounter, true, null, this.I18n.t('encounterCancelledMsg', {encounterName: this.I18n.t(encounter.encounterType.displayName)})) :
CHSNavigator.navigateToProgramEnrolmentDashboardView(source, encounter.individual.uuid, encounter.programEnrolment.uuid, true, null, this.I18n.t('encounterCancelledMsg', {encounterName: this.I18n.t(encounter.encounterType.displayName)}));
}
getNextParams(popVerificationVew) {
const phoneNumberObservation = _.find(this.state.programEncounter.cancelObservations, obs => obs.isPhoneNumberVerificationRequired(this.state.filteredFormElements));
Expand Down

0 comments on commit cfe2a65

Please sign in to comment.