Skip to content

Commit

Permalink
Merge pull request #10947 from wellcomecollection/just-turn-up
Browse files Browse the repository at this point in the history
Don’t show any message if the parent is ticketed
  • Loading branch information
gestchild authored Jun 12, 2024
2 parents 403cbdd + cf82747 commit 283c648
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions content/webapp/components/EventSchedule/EventScheduleItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ const eventLocations = (locations: Place[], isHybridEvent: boolean) => {
// We only show this message if:
// - the event isn't past AND
// - it doesn't require booking (either through Eventbrite or by contacting the booking enquiry team) AND
// - it doesn't have it's own event schedule
// We also don't show it if the parent event is Ticketed, unless it will display 'Arrive early to register'
// as we don't want to show 'Just turn up' when the parent event is ticketed
// - it doesn't have it's own event schedule AND
// - the parent event isn't Ticketed
function shouldShowMessage({
event,
parentEvent,
Expand All @@ -116,7 +115,7 @@ function shouldShowMessage({
!event.eventbriteId &&
!event.bookingEnquiryTeam &&
!(event.schedule && event.schedule.length > 1) &&
!(parentEvent.bookingType === 'Ticketed' && !event.hasEarlyRegistration)
parentEvent.bookingType !== 'Ticketed'
);
}

Expand Down

0 comments on commit 283c648

Please sign in to comment.