Fixed compareDate function for flexible months

This breaks the year layout, but it's 100% caused by the props of the screen, it's not caused by the date comparison
This commit is contained in:
Alexis
2024-05-20 12:07:13 +02:00
parent ce2dbbc8a4
commit 784b5cf421
2 changed files with 10 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ const { defaultDate, getFormattedDateTitle, getRelativeString } = useCalendar()
const { selectedDate } = storeToRefs(useCalendar())
const mainDateTitle = computed(() => getFormattedDateTitle(selectedDate.value, true))
// const mainDateTitle = computed(() => convertDateToDays(selectedDate.value))
const dateDifference = computed(() => getRelativeString(defaultDate, selectedDate.value))
</script>