From 4367364d4fd8b3d53da016200775ccf27f2689c8 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 24 Jan 2025 16:03:50 +0100 Subject: [PATCH] bug fix --- src/component/calendar/Calendar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/calendar/Calendar.jsx b/src/component/calendar/Calendar.jsx index 4e66786..6b0de96 100644 --- a/src/component/calendar/Calendar.jsx +++ b/src/component/calendar/Calendar.jsx @@ -40,7 +40,7 @@ export default function Calendar(){ const handleAddNewEvent = () => { if(newEvent.title && newEvent.color){ const eventToAdd = {...newEvent} - setDefaultCategory(prev => ([...prev, eventToAdd])) + // setDefaultCategory(prev => ([...prev, eventToAdd])) setNewEvent({title: '', color: ''}) } }