Fix input check
This commit is contained in:
@@ -18,7 +18,7 @@ export default function CreateEventBtn() {
|
||||
|
||||
const handleCreateEvent = async () => {
|
||||
|
||||
if(name !== "" || description !== "" || start !== "" || end !== "") {
|
||||
if (name !== "" && description !== "" && start !== "" && end !== "") {
|
||||
await addEvent(name, description, start, end);
|
||||
}
|
||||
setIsOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user