Skip to content

Commit 141859d

Browse files
authored
Merge pull request #540 from isaacphysics/hotfix/event-waiting-list
Alter logic to show waiting list button
2 parents 7d289ee + 634aae2 commit 141859d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/pages/EventDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const EventDetails = ({match: {params: {eventId}}, location: {pathname}}:
9191
!canMakeABooking &&
9292
event.isNotClosed &&
9393
!event.hasExpired &&
94-
isDefined(event.userBookingStatus) && !["WAITING_LIST", "CONFIRMED", "RESERVED"].includes(event.userBookingStatus) &&
94+
(event.userBookingStatus === undefined || !["WAITING_LIST", "CONFIRMED", "RESERVED"].includes(event.userBookingStatus)) &&
9595
studentOnlyRestrictionSatisfied;
9696

9797
const canReserveSpaces =

0 commit comments

Comments
 (0)