From aa4377250944c8d09853b92570020f19183b0561 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Wed, 7 Aug 2024 15:47:16 -0700 Subject: [PATCH] Fix autoConfirmed prop --- frontend/src/views/BookingView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/BookingView.vue b/frontend/src/views/BookingView.vue index f624985ed..05923f82c 100644 --- a/frontend/src/views/BookingView.vue +++ b/frontend/src/views/BookingView.vue @@ -156,8 +156,11 @@ const bookEvent = async (attendeeData: Attendee) => { modalState.value = ModalStates.Finished; if (usePosthog) { + // Not chained because it's the inverse of booking_confirmation, and it defaults to false. + const autoConfirmed = appointment && appointment.value.booking_confirmation !== undefined + ? !appointment.value.booking_confirmation : false; posthog.capture(MetricEvents.RequestBooking, { - autoConfirmed: appointment?.value.booking_confirmation, + autoConfirmed }); } };