@sunbird-cb/toc 0.35.7 → 0.35.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19426,7 +19426,6 @@ class EnrollProfileFormComponent {
19426
19426
  if (this.updateProfile) {
19427
19427
  this.addLoader = this.addLoader + 1;
19428
19428
  this.userProfileService.editProfileDetails(payload).subscribe((res) => {
19429
- debugger;
19430
19429
  this.addLoader = this.addLoader - 1;
19431
19430
  if (res.responseCode === 'OK') {
19432
19431
  this.submitSurevy(true);
@@ -19438,6 +19437,9 @@ class EnrollProfileFormComponent {
19438
19437
  this.snackBar.open(error?.error?.params?.errmsg || "Something went wrong!");
19439
19438
  });
19440
19439
  }
19440
+ else {
19441
+ this.submitSurevy(true);
19442
+ }
19441
19443
  }
19442
19444
  submitSurevy(status) {
19443
19445
  let surevyPayload = {
@@ -19885,8 +19887,9 @@ class EnrollProfileFormComponent {
19885
19887
  const searchDesignationControl = this.userDetailsForm.get('designation');
19886
19888
  const currentDesignation = searchDesignationControl ? searchDesignationControl.value : '';
19887
19889
  // Check if current designation exists in the list
19890
+ const designationdata = currentDesignation?.designation ? currentDesignation.designation : currentDesignation;
19888
19891
  if (currentDesignation) {
19889
- const designationExists = this.designationsMeta.some((designation) => designation.name.toLowerCase() === currentDesignation.toLowerCase());
19892
+ const designationExists = this.designationsMeta.some((designation) => designation.name.toLowerCase() === designationdata?.toLowerCase());
19890
19893
  // If designation doesn't exist in the list, add it
19891
19894
  if (!designationExists) {
19892
19895
  // Create a new designation object to match the structure of other items