Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Only show checkin link for upcoming & live events

Dave Earley626c838c4b87
diff --git a/frontend/src/components/common/EventCard/index.tsx b/frontend/src/components/common/EventCard/index.tsx
index 39bf56e1b..c59c98f65 100644
--- a/frontend/src/components/common/EventCard/index.tsx
+++ b/frontend/src/components/common/EventCard/index.tsx
@@ -88,10 +88,12 @@ export function EventCard({event}: EventCardProps) {
<Menu.Item onClick={() => navigate(`/manage/event/${event.id}`)}
leftSection={<IconSettings size={14}/>}
>{t`Manage event`}</Menu.Item>
- <Menu.Item onClick={() => navigate(`/manage/event/${event.id}/check-in`)}
- leftSection={<IconQrcode size={14}/>}
- >{t`Check-in`}</Menu.Item>
+ {(event.lifecycle_status === 'UPCOMING' || event.lifecycle_status === 'ONGOING') && (
+ <Menu.Item onClick={() => navigate(`/manage/event/${event.id}/check-in`)}
+ leftSection={<IconQrcode size={14}/>}
+ >{t`Check-in`}</Menu.Item>
+ )}
</Menu.Dropdown>
</Menu>
</div>