fix: harden booking and meeting flows
This commit is contained in:
@@ -15,8 +15,8 @@ export default async function KontoOverviewPage() {
|
||||
const bookings = await getCustomerBookings(customer.id);
|
||||
const meetingSettings = await getMeetingSettingsGlobal();
|
||||
const pending = bookings.filter((b) => b.status === "pending");
|
||||
const confirmed = bookings.filter((b) => b.status === "confirmed" && new Date(b.date) >= new Date());
|
||||
const past = bookings.filter((b) => new Date(b.date) < new Date() || b.status === "rejected" || b.status === "cancelled");
|
||||
const confirmed = bookings.filter((b) => b.status === "confirmed" && new Date(b.endTime) >= new Date());
|
||||
const past = bookings.filter((b) => new Date(b.endTime) < new Date() || b.status === "rejected" || b.status === "cancelled");
|
||||
|
||||
return (
|
||||
<div className="space-y-10">
|
||||
|
||||
Reference in New Issue
Block a user