diff --git a/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx b/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx index 20df8943a7..e3498859a1 100644 --- a/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx +++ b/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx @@ -45,8 +45,8 @@ export const EventRegistrantsModal = (props: ModalPropType): JSX.Element => { const { data: memberData, loading: memberLoading } = useQuery(MEMBERS_LIST, { variables: { id: props.orgId }, }); - const notifyAddRegistrant = async (): Promise => { - toast.promise(addRegistrant, { + const notifyAddRegistrant = (): Promise => { + return toast.promise(addRegistrant, { pending: 'Adding the attendee...', success: 'Added the attendee successfully!', error: 'There was an error in adding the attendee!',