Skip to content

Commit

Permalink
Update event rsvp card
Browse files Browse the repository at this point in the history
  • Loading branch information
everywherejacobkim committed Jul 21, 2024
1 parent c0b6675 commit 6b6ee77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/EventCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@
{#if event.id}
<Button
on:click={(e) => e.stopImmediatePropagation()}
disabled={!isPastEvent ||
disabled={isPastEvent ||
$eventAnalyticsStore === undefined ||
ticketsLeft <= 0 ||
(ticketsLeft <= 0 && !event.joinLink) ||
event.id === 'recmVKh6OgGcv8itV'}
class="rounded-full"
href={event.joinLink ? event.joinLink : `/checkout/${event.id}`}>
{isPastEvent
? 'CLOSED'
: $eventAnalyticsStore === undefined
? 'loading...'
: ticketsLeft < 0
: ticketsLeft < 0 && !event.joinLink
? 'SOLD OUT'
: 'RSVP'}
</Button>
Expand Down

0 comments on commit 6b6ee77

Please sign in to comment.