diff --git a/components/Inputs/Date/DatePicker.vue b/components/Inputs/Date/DatePicker.vue index fb4547d04..ad5ba2049 100644 --- a/components/Inputs/Date/DatePicker.vue +++ b/components/Inputs/Date/DatePicker.vue @@ -149,11 +149,13 @@ export default { onNextDate() { switch (this.selectedCalendarType) { case CalendarType.DAY: { - const { month, year } = getNextMonth(this.month, this.year); + const { + month: nextMonth, year: nextYear, + } = getNextMonth(this.month, this.year); - this.month = month; - this.year = year; - this.calendarHeader = getHeaderForCalendarDaysType(month, year); + this.month = nextMonth; + this.year = nextYear; + this.calendarHeader = getHeaderForCalendarDaysType(nextMonth, nextYear); break; } diff --git a/components/Inputs/Date/DatePickerHeader.vue b/components/Inputs/Date/DatePickerHeader.vue index b9e4ff875..97e2b1ac3 100644 --- a/components/Inputs/Date/DatePickerHeader.vue +++ b/components/Inputs/Date/DatePickerHeader.vue @@ -2,10 +2,6 @@ * Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved. * See LICENSE for license details. */ -/* -* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved. -* See LICENSE for license details. -*/