Skip to content

Commit cf47e24

Browse files
committed
🐛 fix(recurring-events): copilot fix
1 parent 1963544 commit cf47e24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/util/event/event.util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export const isInstance = (
6060
): boolean => {
6161
return (
6262
"recurrence" in event &&
63-
!("rule" in event.recurrence!) &&
63+
typeof event.recurrence === "object" &&
64+
!("rule" in event.recurrence) &&
6465
typeof event.recurrence?.eventId === "string"
6566
);
6667
};

0 commit comments

Comments
 (0)