From 495e8321c4ac90d4c403d3454e7e7da4ae16eeff Mon Sep 17 00:00:00 2001 From: Vicente Date: Wed, 6 Nov 2024 19:43:57 +0100 Subject: [PATCH] :bug: removed faulty types library for calendar --- package.json | 1 - src/pages/calendar/Calendar.tsx | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f73084b..07722c7 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,6 @@ "@types/node": "^12.7.4", "@types/ramda": "^0.27.20", "@types/react": "^18.0.0", - "@types/react-big-calendar": "1.15.0", "@types/react-dom": "^18.0.0", "@types/react-helmet": "^6.1.5", "@types/react-outside-click-handler": "^1.3.0", diff --git a/src/pages/calendar/Calendar.tsx b/src/pages/calendar/Calendar.tsx index f0c9e79..c714702 100644 --- a/src/pages/calendar/Calendar.tsx +++ b/src/pages/calendar/Calendar.tsx @@ -78,6 +78,7 @@ export default function Calendar() { if (!isLogged) { return; } + setEvents([]); const { prevMonthDay, nextMonthDay, firstDate, daysInMonth } = getAllDates(selectedDate);