diff --git a/components/calender/index.tsx b/components/calender/index.tsx index 0bd1c6f..c25f481 100644 --- a/components/calender/index.tsx +++ b/components/calender/index.tsx @@ -11,7 +11,7 @@ const Calender = (newDate?: UpdateCalendarProps): JSX.Element => { const { stickersMonth } = useContext(StickersContext); useEffect(() => { - if (newDate) { + if (newDate && newDate.year && newDate.month && newDate.day) { const { year, month, day } = newDate; if (year > 0 && month > 0 && day > 0) {