From 66b5c8aff692e4a4497f0ed7aee435f30af495ff Mon Sep 17 00:00:00 2001
From: Michael Fatemi <myfatemi04@gmail.com>
Date: Wed, 30 Jun 2021 21:29:05 -0400
Subject: [PATCH] update api call for creating an event

---
 src/components/NewUI/EventCreator.tsx | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/components/NewUI/EventCreator.tsx b/src/components/NewUI/EventCreator.tsx
index 6b8d0c3..ca17144 100644
--- a/src/components/NewUI/EventCreator.tsx
+++ b/src/components/NewUI/EventCreator.tsx
@@ -106,6 +106,9 @@ export default function EventCreator({ group }: { group: IGroup }) {
 				endTime,
 				groupId: group.id,
 				placeId,
+				recurring,
+				daysOfWeek,
+				endDate,
 			})
 				.then((response) => response.json())
 				.then(({ id }) => {
@@ -113,7 +116,17 @@ export default function EventCreator({ group }: { group: IGroup }) {
 				})
 				.finally(() => setCreating(false));
 		}
-	}, [creating, name, startTime, endTime, group.id, placeId]);
+	}, [
+		creating,
+		name,
+		startTime,
+		endTime,
+		group.id,
+		placeId,
+		recurring,
+		daysOfWeek,
+		endDate,
+	]);
 
 	return (
 		<UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}>