From 47fba3cb8d68925d8bfd507f0a1580f285a06241 Mon Sep 17 00:00:00 2001 From: Christian Arevalo Date: Sun, 24 Sep 2023 07:03:11 -0500 Subject: [PATCH] :bug: Fixed logo and ticket button bugs --- src/components/shared/Logo.tsx | 2 +- src/pages/events/[id]/index.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/shared/Logo.tsx b/src/components/shared/Logo.tsx index 0bc0119..e458a27 100644 --- a/src/components/shared/Logo.tsx +++ b/src/components/shared/Logo.tsx @@ -13,7 +13,7 @@ export default function Logo() { gap={{ base: '.4rem', lg: '1rem' }} > MeetdApp logo diff --git a/src/pages/events/[id]/index.tsx b/src/pages/events/[id]/index.tsx index 1d75e31..151dfcc 100644 --- a/src/pages/events/[id]/index.tsx +++ b/src/pages/events/[id]/index.tsx @@ -239,13 +239,18 @@ function Event(): JSX.Element { return } + if (chain?.id !== CHAINID) { + setHasTicket(false) + } + if (address && meetdAppEventContract) { meetdAppEventContract.eventAttendees(address).then((ticket: boolean) => { setHasTicket(ticket) setOwner(address) }) } - }, [address]) + + }, [address, chain?.id]) return ( <>