Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Able to toggle off timeFormat on new booker UI (#9442)

Rob Jackson5b47844fa11e
diff --git a/packages/features/bookings/components/TimeFormatToggle.tsx b/packages/features/bookings/components/TimeFormatToggle.tsx
index 71add8b05b8..20b38bec963 100644
--- a/packages/features/bookings/components/TimeFormatToggle.tsx
+++ b/packages/features/bookings/components/TimeFormatToggle.tsx
@@ -12,7 +12,7 @@ export const TimeFormatToggle = () => {
return (
<ToggleGroup
onValueChange={(newFormat) => {
- if (newFormat !== timeFormat) setTimeFormat(newFormat as TimeFormat);
+ if (newFormat && newFormat !== timeFormat) setTimeFormat(newFormat as TimeFormat);
}}
defaultValue={timeFormat}
value={timeFormat}