iptdevs-design-system 3.1.809 → 3.1.810

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.
@@ -3971,7 +3971,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
3971
3971
  initForm() {
3972
3972
  this.codFormStepTwo = this.fb.group({
3973
3973
  student_address: ['', [Validators.required], []],
3974
- birthdate: [new Date().toISOString().split('T')[0], [Validators.required], []],
3974
+ birthdate: ['', [Validators.required], []],
3975
3975
  country: ['', [Validators.required], []],
3976
3976
  state: ['', [Validators.required], []],
3977
3977
  city: ['', [Validators.required], []],
@@ -3993,6 +3993,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
3993
3993
  re_password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
3994
3994
  });
3995
3995
  // Calcular edad y setear valor
3996
+ this.codFormStepTwo.controls['birthdate'].setValue(this.getCurrentDate());
3996
3997
  this.codFormStepTwo.controls['birthdate'].valueChanges.subscribe({
3997
3998
  next: (change) => {
3998
3999
  let today = new Date();
@@ -4015,6 +4016,9 @@ class CodFormStepTwoComponent extends CodFormSteps {
4015
4016
  }
4016
4017
  });
4017
4018
  }
4019
+ getCurrentDate() {
4020
+ return new Date().toISOString().split('T')[0];
4021
+ }
4018
4022
  getParameters() {
4019
4023
  this.parameterService.getCardTypes('col').subscribe((response) => {
4020
4024
  this.idTypes = response.data;