@annalib/anna-core 5.2.5 → 5.2.6

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.
@@ -2692,7 +2692,7 @@ class AnnaNonEditableGenericTableComponent {
2692
2692
  incrementMinute(arr) {
2693
2693
  // increment to nearest proper interval(15,30,45)
2694
2694
  let min = parseInt(arr[1]);
2695
- if (min == 0 && min <= 14) {
2695
+ if (min <= 14) {
2696
2696
  arr[1] = "15";
2697
2697
  }
2698
2698
  else if (min >= 15 && min <= 29) {
@@ -2717,7 +2717,7 @@ class AnnaNonEditableGenericTableComponent {
2717
2717
  }
2718
2718
  decrementMinute(arr) {
2719
2719
  let min = parseInt(arr[1]);
2720
- if (min == 0 && min <= 15) {
2720
+ if (min > 0 && min <= 15) {
2721
2721
  arr[1] = "00";
2722
2722
  }
2723
2723
  else if (min >= 16 && min <= 30) {
@@ -2726,7 +2726,7 @@ class AnnaNonEditableGenericTableComponent {
2726
2726
  else if (min >= 31 && min <= 45) {
2727
2727
  arr[1] = "30";
2728
2728
  }
2729
- else if (min > 45) {
2729
+ else if (min > 45 || min == 0) {
2730
2730
  arr[1] = "45";
2731
2731
  }
2732
2732
  // arr[1] = parseInt(arr[1]) - 15;