diff --git a/src/components/Inspect.tsx b/src/components/Inspect.tsx index 4f149e6d..a2675cda 100644 --- a/src/components/Inspect.tsx +++ b/src/components/Inspect.tsx @@ -7,16 +7,19 @@ import apiClient from '@/utils/apiClient'; import QrScanner from './QrScanner'; interface InspectGuest { + id: string; firstName: string; lastName: string; created: string; - createdReason: string; + createdReason?: string; status: string; orderId: string; - meta: { comment?: string }; admissionTier: string; - checkInTime: string; + checkInTime: string | null; + eventId: string; eventName: string; + eventDate: string; + eventStatus: string; } const CheckIn = () => { @@ -46,7 +49,7 @@ const CheckIn = () => { }); }, []); - const { firstName, lastName, created, createdReason, status, orderId, meta, admissionTier, checkInTime, eventName } = guest || ({} as InspectGuest); + const { firstName, lastName, created, createdReason, status, orderId, admissionTier, checkInTime, eventName } = guest || ({} as InspectGuest); return (
@@ -80,10 +83,7 @@ const CheckIn = () => { Event: {eventName}

- Status: {status === 'checked_in' ? <>Checked In {format(new Date(checkInTime), 'M/dd/yy - HH:mm')} : status} -

-

- Notes: {meta?.comment || ' n/a '} + Status: {status === 'checked_in' && checkInTime ? <>Checked In {format(new Date(checkInTime), 'M/dd/yy - HH:mm')} : status}