From 5dc00f12bc766b490011c941ff4f8f89f4c3f1f8 Mon Sep 17 00:00:00 2001 From: skbhagat0502 Date: Fri, 10 Nov 2023 01:58:55 +0530 Subject: [PATCH] minor fix --- .../EventRegistrantsModal/EventRegistrantsModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!',