Skip to content

Commit

Permalink
Fix autoConfirmed prop
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Aug 7, 2024
1 parent eed8c67 commit aa43772
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/views/BookingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
};
Expand Down

0 comments on commit aa43772

Please sign in to comment.