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 ( <>