Skip to content

Scheduling infrastructure for absolutely everyone.

Fix bug to check opt in bookings (#2889)

Joe Au-Yeungc67338bb3fd5
diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx
index ca4e604d9b7..a3c58c4bf7f 100644
--- a/apps/web/pages/event-types/[type].tsx
+++ b/apps/web/pages/event-types/[type].tsx
@@ -1439,9 +1439,8 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
<Controller
name="requiresConfirmation"
- control={formMethods.control}
defaultValue={eventType.requiresConfirmation}
- render={() => (
+ render={({ field: { value, onChange } }) => (
<CheckboxField
id="requiresConfirmation"
descriptionAsLabel
@@ -1450,10 +1449,8 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
description={t("opt_in_booking_description")}
defaultChecked={eventType.requiresConfirmation}
disabled={enableSeats}
- checked={formMethods.watch("disableGuests")}
- onChange={(e) => {
- formMethods.setValue("requiresConfirmation", e?.target.checked);
- }}
+ checked={value}
+ onChange={(e) => onChange(e?.target.checked)}
/>
)}
/>
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index 67ca80eedb3..ebc9f89142a 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -768,7 +768,7 @@
"redirect_url_upgrade_description": "In order to use this feature, you need to upgrade to a Pro account.",
"duplicate": "Duplicate",
"offer_seats": "Offer seats",
- "offer_seats_description": "Offer seats to bookings (This disables guests)",
+ "offer_seats_description": "Offer seats to bookings (This disables guests & opt in bookings)",
"seats_available": "Seats available",
"number_of_seats": "Number of seats per booking",
"enter_number_of_seats": "Enter number of seats",