diff --git a/src/components/RegistrationGraph.js b/src/components/RegistrationGraph.js index a84a737..010a41e 100644 --- a/src/components/RegistrationGraph.js +++ b/src/components/RegistrationGraph.js @@ -13,7 +13,6 @@ export default function RegistrationGraph({ event, children, ...props }) { const graphStart = now.clone().subtract(DAYS, 'days'); const data = []; const ticketsWithDate = event.tickets.map((e) => ({ ...e, createdAt: moment(e.createdAt) })); - for (let current = graphStart.clone(); current < now; current = current.add({ day: 1 })) { data.push({ x: -1 * Math.floor(now.diff(current, 'days')), diff --git a/src/components/Ticket.gql b/src/components/Ticket.gql index 78ce186..b078b0d 100644 --- a/src/components/Ticket.gql +++ b/src/components/Ticket.gql @@ -13,11 +13,13 @@ fragment Ticket on ClearTicket { checkedIn checkedOut vaccineVerified: getMetadata(key: "vaccineVerified") + surveyResponses promoCode { code } event { id + overnightMinAge } } diff --git a/src/components/Ticket.js b/src/components/Ticket.js index 34deef8..7f4b1e8 100644 --- a/src/components/Ticket.js +++ b/src/components/Ticket.js @@ -5,7 +5,7 @@ import {Box, Button, Text} from "@codeday/topo/Atom"; import {useToasts} from '@codeday/topo/utils'; import {checkin, checkout, sendWaiverReminder} from './Ticket.gql'; import Badge from "./Badge"; -import Alert, {GoodAlert} from "./Alert"; +import Alert, {GoodAlert, InfoAlert} from "./Alert"; import {useFetcher} from '../fetch'; import InfoBox from "./InfoBox"; import * as Icon from "@codeday/topocons/Icon"; @@ -92,6 +92,10 @@ export default function Ticket({ticket, eventId, ...props}) {
)} + {(ticket.surveyResponses?.dietary || 'none') !== 'none' && Dietary restrictions: {ticket.surveyResponses.dietary}} + {ticket.surveyResponses?.laptop == 'yes' && Requested laptop} + {(ticket.event.overnightMinAge && ticket.age < ticket.event.overnightMinAge) && Can't stay overnight} +
{session && (