iptdevs-design-system 3.1.507 → 3.1.508

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.
@@ -6710,9 +6710,14 @@ class CodSelfFormStepTwoComponent extends CodSelfManagedSteps {
6710
6710
  }
6711
6711
  }
6712
6712
  onDateChange(event) {
6713
- // Convierte la fecha a una cadena ISO 8601 y guárdala en el localStorage
6714
- localStorage.setItem('COD SELF - step2(schedule)', event.toISOString());
6715
- console.log(event);
6713
+ if (event instanceof Date) {
6714
+ // Convierte la fecha a una cadena ISO 8601 y guárdala en el localStorage
6715
+ localStorage.setItem('COD SELF - step2(schedule)', event.toISOString());
6716
+ console.log(event);
6717
+ }
6718
+ else {
6719
+ console.error('Error: El evento no es una instancia de Date.');
6720
+ }
6716
6721
  }
6717
6722
  onReject() {
6718
6723
  this.messageService.clear('confirm');