diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index 5847b681..6caa24a1 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -155,7 +155,7 @@ function setDateRange(range: string[] | null) { } const customRangeActive = computed(() => { - return !Object.values(DATE_RANGES).some(el => from.value === el[0] && to.value === el[1]) + return !Object.values(DATE_RANGES).some(range => from.value === range[0] && to.value === range[1]) }) const buttonText = computed(() => {