Update DatePicker.tsx

pull/2803/head
zomars 2022-05-17 22:02:23 -06:00
parent 8a9b7ca78c
commit 8545bfef67
1 changed files with 1 additions and 1 deletions

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