From 24c048df4d5b531080f2c3d6d5bae8dd513befe1 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Wed, 27 Nov 2024 19:36:37 +0100 Subject: [PATCH] Fixed monthsPerYear leftover data --- components/calendar/CalendarMenuSubnav.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/calendar/CalendarMenuSubnav.vue b/components/calendar/CalendarMenuSubnav.vue index 3b0d7d0..4cb17f4 100644 --- a/components/calendar/CalendarMenuSubnav.vue +++ b/components/calendar/CalendarMenuSubnav.vue @@ -4,7 +4,7 @@ import { type RPGDate } from "@/models/Date" import { PhArrowLineLeft, PhArrowLineRight } from "@phosphor-icons/vue" import { useToast } from "../ui/toast"; -const { currentDate, currentConfig, jumpToDate, getRelativeEventFromDate } = useCalendar() +const { currentDate, currentConfig, jumpToDate, getRelativeEventFromDate, monthsPerYear } = useCalendar() const { toast } = useToast() const { t } = useI18n() @@ -14,7 +14,6 @@ function handleGotoPreviousEventPage(position: "next" | "prev" = "next") { // To modify, obviously const daysPerMonth = 32 - const monthsPerYear = 10 const toDay = position === "next" ? daysPerMonth : 1 const toMonth = position === "next" ? monthsPerYear : 0