Skip to content

Commit

Permalink
Issue #ED-2873 merge: Merge pull request #3493 from Ajoymaity/release…
Browse files Browse the repository at this point in the history
…-6.0.0_v13

Issue #ED-2873 fix: Fixed navigation issue for update profile type
  • Loading branch information
swayangjit authored Sep 15, 2023
2 parents 6844bdd + e2ec167 commit b20f8ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/district-mapping/district-mapping.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ export class DistrictMappingPage implements OnDestroy {
this.location.back();
} else if (this.profile && this.source === PageId.PROFILE) {
this.location.back();
this.events.publish('UPDATE_TABS', {type: 'SWITCH_TABS_USERTYPE'});
if (this.profile.serverProfile && (!Object.keys(this.profile.serverProfile.profileUserType).length
|| (this.formGroup.value.persona !== this.profile.serverProfile.profileUserType.type))) {
this.events.publish('UPDATE_TABS', {type: 'SWITCH_TABS_USERTYPE'});
}
} else {
if (this.profile && !isSSOUser) {
await this.appGlobalService.showYearOfBirthPopup(this.profile.serverProfile);
Expand Down

0 comments on commit b20f8ce

Please sign in to comment.