iptdevs-design-system 3.1.4376 → 3.1.4377

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.
@@ -6409,18 +6409,18 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6409
6409
  });
6410
6410
  }
6411
6411
  setDataUsers() {
6412
- this.codSelfFormStepOne.controls['student_name'].setValue(this.user.name);
6413
- this.codSelfFormStepOne.controls['student_last_name'].setValue(this.user.last_name);
6414
- this.codSelfFormStepOne.controls['student_id_card_type'].setValue(this.user.id_card_type);
6415
- this.codSelfFormStepOne.controls['student_id_card'].setValue(this.user.id_card);
6416
- this.codSelfFormStepOne.controls['country'].setValue(this.user.city[0]?.country != (1 || null) ? this.user.city[0]?.country : null);
6417
- this.codSelfFormStepOne.controls['state'].setValue(this.user.city[0]?.state != (33 || null) ? this.user.city[0]?.state : null);
6418
- this.codSelfFormStepOne.controls['city'].setValue(this.user.city[0]?.code != (1 || null) ? this.user.city[0]?.code : null);
6419
- this.codSelfFormStepOne.controls['gender'].setValue(this.user.gender);
6420
- this.codSelfFormStepOne.controls['birthdate'].setValue(this.user.birthdate);
6421
- this.codSelfFormStepOne.controls['student_email'].setValue(this.user.email);
6422
- this.codSelfFormStepOne.controls['student_phone_indicative'].setValue(this.user.phone_indicative);
6423
- this.codSelfFormStepOne.controls['student_phone_number'].setValue(this.user.phone_number);
6412
+ this.codSelfFormStepOne.controls['student_name'].setValue(this.user?.name);
6413
+ this.codSelfFormStepOne.controls['student_last_name'].setValue(this.user?.last_name);
6414
+ this.codSelfFormStepOne.controls['student_id_card_type'].setValue(this.user?.id_card_type);
6415
+ this.codSelfFormStepOne.controls['student_id_card'].setValue(this.user?.id_card);
6416
+ this.codSelfFormStepOne.controls['country'].setValue(this.user?.city[0]?.country != (1 || null) ? this.user?.city[0]?.country : null);
6417
+ this.codSelfFormStepOne.controls['state'].setValue(this.user?.city[0]?.state != (33 || null) ? this.user?.city[0]?.state : null);
6418
+ this.codSelfFormStepOne.controls['city'].setValue(this.user?.city[0]?.code != (1 || null) ? this.user?.city[0]?.code : null);
6419
+ this.codSelfFormStepOne.controls['gender'].setValue(this.user?.gender);
6420
+ this.codSelfFormStepOne.controls['birthdate'].setValue(this.user?.birthdate);
6421
+ this.codSelfFormStepOne.controls['student_email'].setValue(this.user?.email);
6422
+ this.codSelfFormStepOne.controls['student_phone_indicative'].setValue(this.user?.phone_indicative);
6423
+ this.codSelfFormStepOne.controls['student_phone_number'].setValue(this.user?.phone_number);
6424
6424
  }
6425
6425
  selectCountry(country) {
6426
6426
  let iso = '';
@@ -6623,6 +6623,12 @@ class CodSelfManagedComponent {
6623
6623
  }
6624
6624
  ngOnChanges(changes) {
6625
6625
  console.log(this.user);
6626
+ if (changes['user'] && this.user != null) {
6627
+ console.log(this.user);
6628
+ }
6629
+ else {
6630
+ console.log('user', this.user);
6631
+ }
6626
6632
  }
6627
6633
  onChangeStep(step) {
6628
6634
  // console.log(step);