Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Nov 23, 2024
1 parent ce1648c commit ea6bc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/EventPage/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const TicketsPill = styled.div`
const clipLink = (s: string) => (s.length > 32 ? `${s.slice(0, 35)}...` : s)

const EventCard = (props: {
event: ClubEvent & { clubPublic: boolean }
event: ClubEvent & { clubPublic?: boolean }
}): ReactElement => {
const {
image_url: imageUrl,
Expand Down Expand Up @@ -80,7 +80,7 @@ const EventCard = (props: {
)}
<ClubName>{clubName}</ClubName>
<EventName>{name}</EventName>
{!clubPublic && <p>This event is not shown to the public.</p>}
{clubPublic === false && <p>This event is not shown to the public.</p>}
{ticketed && (
<TicketsPill
style={{
Expand Down

0 comments on commit ea6bc1a

Please sign in to comment.