From 4973bdbdd06ceb0f636ec047a8286d22ec39f000 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Sat, 26 Mar 2022 20:46:38 -0500 Subject: [PATCH] Fixed false positive console warn. --- components/calender/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {