From 435117fa069e01a48e4e1b945782db0efe2e770c Mon Sep 17 00:00:00 2001 From: ayussh-2 Date: Sat, 13 Jul 2024 16:38:14 +0530 Subject: [PATCH] fix: prettier fix and lint fix --- src/components/events/EventCard.jsx | 1 - src/components/events/Events.jsx | 1 + src/components/marginals/Nav_Hero/ProfileMenu.styles.jsx | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/events/EventCard.jsx b/src/components/events/EventCard.jsx index 047179e..f15806a 100644 --- a/src/components/events/EventCard.jsx +++ b/src/components/events/EventCard.jsx @@ -71,7 +71,6 @@ export default function EventCard({ toast.info('Please complete your profile to register for the event') return } - if (!userSrcId) { toast.info('Please complete your payment to register for the event') return diff --git a/src/components/events/Events.jsx b/src/components/events/Events.jsx index e8148ee..afa656a 100644 --- a/src/components/events/Events.jsx +++ b/src/components/events/Events.jsx @@ -71,6 +71,7 @@ export default function Events() { try { const { data } = await getUserInDB({ uid: userInfo.uid, orgId }) setMongoId(data.getUser.id) + setUserSrcId(data.getUser.srcID) } catch (error) { console.error('Error fetching user data:', error) } diff --git a/src/components/marginals/Nav_Hero/ProfileMenu.styles.jsx b/src/components/marginals/Nav_Hero/ProfileMenu.styles.jsx index edfd732..7f5fe89 100644 --- a/src/components/marginals/Nav_Hero/ProfileMenu.styles.jsx +++ b/src/components/marginals/Nav_Hero/ProfileMenu.styles.jsx @@ -159,7 +159,8 @@ export const LoaderContainer = styled.div` flex items-center justify-center - mb-5`}` + mb-5`} +` export const CopyButton = styled.button` ${tw`