simpo-component-library 3.5.36 → 3.5.37

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.
@@ -11044,10 +11044,10 @@ class RegistrationFormComponent extends BaseSection {
11044
11044
  let payload = {
11045
11045
  "mailPaymentLink": window.location.href,
11046
11046
  "feeSummaryId": admissionData.id,
11047
- "name": this.fetchStudentDetails('STUDENT_NAME'),
11047
+ "name": this.fetchStudentDetails(admissionData.fieldItems, 'STUDENT_NAME'),
11048
11048
  "amount": admissionData.studentFeeStructureV2.totalFee,
11049
- "mobile": this.fetchStudentDetails('CONTACT_MOBILE'),
11050
- "email": this.fetchStudentDetails('CONTACT_EMAIL'),
11049
+ "mobile": this.fetchStudentDetails(admissionData.fieldItems, 'CONTACT_MOBILE'),
11050
+ "email": this.fetchStudentDetails(admissionData.fieldItems, 'CONTACT_EMAIL'),
11051
11051
  "feeConfig": admissionData.studentFeeStructureV2.feeConfig,
11052
11052
  "preAdmissionId": admissionData.id,
11053
11053
  "selectedStopDetail": admissionData.selectedStopDetail,
@@ -11058,8 +11058,8 @@ class RegistrationFormComponent extends BaseSection {
11058
11058
  });
11059
11059
  });
11060
11060
  }
11061
- fetchStudentDetails(getType) {
11062
- const element = this.fieldData.fieldItems.find((el) => el.type === getType);
11061
+ fetchStudentDetails(array, getType) {
11062
+ const element = array.find((el) => el.type === getType);
11063
11063
  if (element) {
11064
11064
  return element.fieldValue;
11065
11065
  }