Update DatePicker.tsx

This commit is contained in:
zomars
2022-05-17 22:02:23 -06:00
parent 8a9b7ca78c
commit 8545bfef67

View File

@@ -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: {