From 4f9b65ffaa52738e1fdfe715cf20f00cb379a159 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 30 Oct 2024 18:54:16 -0400 Subject: [PATCH] simplified no longer necessary else statement --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index 8bac791e9..756344470 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -998,7 +998,6 @@ export default { this.pm = currentHour > 11; if (currentHour >= 12) currentHour = currentHour == 12 ? 12 : currentHour - 12; - else currentHour = currentHour == 0 ? 0 : currentHour; } this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour; @@ -1586,6 +1585,7 @@ export default { newHour = newHour <= 0 ? 12 + newHour : newHour; } + 1; if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) { this.currentHour = newHour;