Skip to content

Scheduling infrastructure for absolutely everyone.

Update DatePicker.tsx

zomars8545bfef677d
diff --git a/apps/web/components/booking/DatePicker.tsx b/apps/web/components/booking/DatePicker.tsx
index ff4848ff777..62e2bc3c596 100644
--- a/apps/web/components/booking/DatePicker.tsx
+++ b/apps/web/components/booking/DatePicker.tsx
@@ -51,7 +51,7 @@ function isOutOfBounds(
>
) {
const date = dayjs(time);
- if (!periodDays) throw Error("periodDays is undefined");
+ if (!periodDays) return false;
switch (periodType) {
case PeriodType.ROLLING: {