From 8545bfef677da99449fe4808b39d8b9843a51dc2 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 17 May 2022 22:02:23 -0600 Subject: [PATCH] Update DatePicker.tsx --- apps/web/components/booking/DatePicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/booking/DatePicker.tsx b/apps/web/components/booking/DatePicker.tsx index ff4848ff77..62e2bc3c59 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: {