fix: type error in booker (#11011)
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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue