Removed useless Number() calls

This commit is contained in:
Alexis
2024-04-03 22:56:57 +02:00
parent 10e5cf7a1a
commit 614e29cf24
3 changed files with 49 additions and 43 deletions

View File

@@ -11,8 +11,8 @@ const daysPerMonth = computed(() => staticConfig.daysPerMonth)
function getNextMonthDate(day: number): LeimDate {
let nextDay = day
let nextMonth = Number(currentDate.currentMonth) + 1
let nextYear = Number(currentDate.currentYear)
let nextMonth = currentDate.currentMonth + 1
let nextYear = currentDate.currentYear
let nextPeriod = currentDate.currentPeriod
// If the new value would exceed the max number of month per year
@@ -59,8 +59,8 @@ const moveCalendarRight = useThrottleFn(() => {
:key="day"
:date="{
day: day,
month: Number(currentDate.currentMonth),
year: Number(currentDate.currentYear),
month: currentDate.currentMonth,
year: currentDate.currentYear,
period: currentDate.currentPeriod
}"
/>