Fixed monthsPerYear leftover data

This commit is contained in:
Alexis
2024-11-27 19:36:37 +01:00
parent c55d690f8b
commit 24c048df4d

View File

@@ -4,7 +4,7 @@ import { type RPGDate } from "@/models/Date"
import { PhArrowLineLeft, PhArrowLineRight } from "@phosphor-icons/vue" import { PhArrowLineLeft, PhArrowLineRight } from "@phosphor-icons/vue"
import { useToast } from "../ui/toast"; import { useToast } from "../ui/toast";
const { currentDate, currentConfig, jumpToDate, getRelativeEventFromDate } = useCalendar() const { currentDate, currentConfig, jumpToDate, getRelativeEventFromDate, monthsPerYear } = useCalendar()
const { toast } = useToast() const { toast } = useToast()
const { t } = useI18n() const { t } = useI18n()
@@ -14,7 +14,6 @@ function handleGotoPreviousEventPage(position: "next" | "prev" = "next") {
// To modify, obviously // To modify, obviously
const daysPerMonth = 32 const daysPerMonth = 32
const monthsPerYear = 10
const toDay = position === "next" ? daysPerMonth : 1 const toDay = position === "next" ? daysPerMonth : 1
const toMonth = position === "next" ? monthsPerYear : 0 const toMonth = position === "next" ? monthsPerYear : 0