fix: harden booking and meeting flows
This commit is contained in:
@@ -36,6 +36,8 @@ export function getMeetingStatus({
|
||||
const closeAt = end.getTime() + closeAfterMinutes * 60_000;
|
||||
const t = now.getTime();
|
||||
|
||||
if (![openAt, closeAt, t].every(Number.isFinite) || end <= start) return "ended";
|
||||
|
||||
if (t >= closeAt) return "ended";
|
||||
if (t >= start.getTime()) return "live";
|
||||
if (t >= openAt) return "open";
|
||||
|
||||
Reference in New Issue
Block a user