Skip to content

Commit

Permalink
Update content-update.js
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Oct 9, 2024
1 parent a39161e commit 7ab9a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/scripts/content-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function createTag(tag, attributes, html, options = {}) {
async function updateRSVPButtonState(rsvpBtn, miloLibs, eventInfo) {
const rsvpData = BlockMediator.get('rsvpData');
const checkRed = getIcon('check-circle-red');
const { attendeeLimit, attendeeCount, allowWaitlisting } = eventInfo;
const { attendeeLimit, attendeeCount, allowWaitListing } = eventInfo;
const eventFull = +attendeeLimit <= +attendeeCount;

const enableBtn = () => {
Expand Down Expand Up @@ -148,7 +148,7 @@ async function updateRSVPButtonState(rsvpBtn, miloLibs, eventInfo) {

if (!rsvpData) {
if (eventFull) {
if (allowWaitlisting) {
if (allowWaitListing) {
await waitlistState();
} else {
await closedState();
Expand Down

0 comments on commit 7ab9a34

Please sign in to comment.