From 199ca4218983489b0fa0c495d9c365fc30e7f28d Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Wed, 24 May 2023 14:28:19 -0400 Subject: [PATCH] CSR-886: remove superfluous logic --- src/digital-components/date-picker/date-picker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index 78eb25797..bd9ae6d9a 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -171,7 +171,7 @@ export default { }, getNextWeekSunday(date) { const dayOfWeek = date.getDay(); - const daysUntilNextSunday = dayOfWeek === 0 ? 7 : 7 - dayOfWeek; // Calculate the number of days until the next Sunday + const daysUntilNextSunday = 7 - dayOfWeek; // Calculate the number of days until the next Sunday // Clone the given date and add the remaining days until Sunday const nextSunday = new Date(date); nextSunday.setDate(date.getDate() + daysUntilNextSunday);