From d1cde710ed0544b773f2d55b9c3d2e33c48b9e12 Mon Sep 17 00:00:00 2001 From: skbhagat0502 Date: Fri, 10 Nov 2023 20:36:21 +0530 Subject: [PATCH] Add correct toast to EventRegistrantsModal.tsx --- src/components/EventRegistrantsModal/EventRegistrantsModal.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx b/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx index e3498859a1..46ae1b0fd1 100644 --- a/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx +++ b/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx @@ -57,14 +57,12 @@ export const EventRegistrantsModal = (props: ModalPropType): JSX.Element => { toast.warning('Please choose an user to add first!'); return Promise.reject(); } - await addRegistrantMutation({ variables: { userId: member._id, eventId: props.eventId, }, }); - attendeesRefetch(); }; const notifyDeleteRegistrant = (userId: string): Promise => { @@ -81,7 +79,6 @@ export const EventRegistrantsModal = (props: ModalPropType): JSX.Element => { eventId: props.eventId, }, }); - attendeesRefetch(); }; // Render the loading screen