Skip to content

Commit

Permalink
retire waitlistAttendeeLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Oct 9, 2024
1 parent fe38835 commit 5808dbe
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions events/scripts/content-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,9 @@ async function updateRSVPButtonState(rsvpBtn, miloLibs, eventInfo) {
const {
attendeeLimit,
attendeeCount,
waitlistAttendeeCount,
waitlistAttendeeLimit,
allowWaitListing,
cloudType,
} = eventInfo;
let eventFull = false;

if (cloudType === 'CreativeCloud') {
eventFull = +attendeeLimit <= +attendeeCount;
} else if (cloudType === 'DX') {
eventFull = +waitlistAttendeeLimit <= +waitlistAttendeeCount;
}
const eventFull = +attendeeLimit <= +attendeeCount;

const enableBtn = () => {
rsvpBtn.el.classList.remove('disabled');
Expand Down

0 comments on commit 5808dbe

Please sign in to comment.