Skip to content

Commit 99a5dcf

Browse files
authored
fix: type error in booker (#11011)
1 parent 79f0926 commit 99a5dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/features/schedules/lib/use-schedule/useNonEmptyScheduleDays.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useMemo } from "react";
33
import type { Slots } from "../use-schedule";
44

55
export const getNonEmptyScheduleDays = (slots?: Slots) => {
6-
if (typeof slots === "undefined") return null;
6+
if (typeof slots === "undefined") return [];
77
return Object.keys(slots).filter((day) => slots[day].length > 0);
88
};
99

0 commit comments

Comments
 (0)