bug fix
This commit is contained in:
@@ -40,7 +40,7 @@ export default function Calendar(){
|
|||||||
const handleAddNewEvent = () => {
|
const handleAddNewEvent = () => {
|
||||||
if(newEvent.title && newEvent.color){
|
if(newEvent.title && newEvent.color){
|
||||||
const eventToAdd = {...newEvent}
|
const eventToAdd = {...newEvent}
|
||||||
setDefaultCategory(prev => ([...prev, eventToAdd]))
|
// setDefaultCategory(prev => ([...prev, eventToAdd]))
|
||||||
setNewEvent({title: '', color: ''})
|
setNewEvent({title: '', color: ''})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user