diff --git a/contexts/CalenderContext.tsx b/contexts/CalenderContext.tsx index 95a48cf..662c293 100644 --- a/contexts/CalenderContext.tsx +++ b/contexts/CalenderContext.tsx @@ -131,7 +131,7 @@ const CalenderContextProvider = ({ const overflowInfo = isOverflow(selectedDate, sunCurrDate); const stickerDay = overflowInfo.isOverflow ? null - : stickersMonth[getDate(sunCurrDate)]; + : stickersMonth[getDate(sunCurrDate) - 1]; const day: MonthDay = { ...overflowInfo, @@ -169,7 +169,7 @@ const CalenderContextProvider = ({ const overflowInfo = isOverflow(selectedDate, monCurrDate); const stickerDay = overflowInfo.isOverflow ? null - : stickersMonth[getDate(monCurrDate)]; + : stickersMonth[getDate(monCurrDate) - 1]; const day: MonthDay = { ...overflowInfo,