Skip to content

Commit

Permalink
Add correct toast to EventRegistrantsModal.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
skbhagat0502 committed Nov 10, 2023
1 parent 1d840fe commit d1cde71
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> => {
Expand All @@ -81,7 +79,6 @@ export const EventRegistrantsModal = (props: ModalPropType): JSX.Element => {
eventId: props.eventId,
},
});
attendeesRefetch();
};

// Render the loading screen
Expand Down

0 comments on commit d1cde71

Please sign in to comment.