fix: type error in booker (#11011)

This commit is contained in:
Udit Takkar
2023-08-29 10:27:06 -07:00
committed by GitHub
parent 79f092673a
commit 99a5dcf96a
@@ -3,7 +3,7 @@ import { useMemo } from "react";
import type { Slots } from "../use-schedule";
export const getNonEmptyScheduleDays = (slots?: Slots) => {
if (typeof slots === "undefined") return null;
if (typeof slots === "undefined") return [];
return Object.keys(slots).filter((day) => slots[day].length > 0);
};