Fixed index for sticker month array.
This commit is contained in:
@@ -131,7 +131,7 @@ const CalenderContextProvider = ({
|
|||||||
const overflowInfo = isOverflow(selectedDate, sunCurrDate);
|
const overflowInfo = isOverflow(selectedDate, sunCurrDate);
|
||||||
const stickerDay = overflowInfo.isOverflow
|
const stickerDay = overflowInfo.isOverflow
|
||||||
? null
|
? null
|
||||||
: stickersMonth[getDate(sunCurrDate)];
|
: stickersMonth[getDate(sunCurrDate) - 1];
|
||||||
|
|
||||||
const day: MonthDay = {
|
const day: MonthDay = {
|
||||||
...overflowInfo,
|
...overflowInfo,
|
||||||
@@ -169,7 +169,7 @@ const CalenderContextProvider = ({
|
|||||||
const overflowInfo = isOverflow(selectedDate, monCurrDate);
|
const overflowInfo = isOverflow(selectedDate, monCurrDate);
|
||||||
const stickerDay = overflowInfo.isOverflow
|
const stickerDay = overflowInfo.isOverflow
|
||||||
? null
|
? null
|
||||||
: stickersMonth[getDate(monCurrDate)];
|
: stickersMonth[getDate(monCurrDate) - 1];
|
||||||
|
|
||||||
const day: MonthDay = {
|
const day: MonthDay = {
|
||||||
...overflowInfo,
|
...overflowInfo,
|
||||||
|
|||||||
Reference in New Issue
Block a user