From 4fd4bfbeda307738428382e0e9d25d95e42434ea Mon Sep 17 00:00:00 2001 From: core Date: Fri, 8 Nov 2024 22:01:10 -0500 Subject: [PATCH] fixes 3 --- package.json | 2 +- src/routes/(authed)/schedule/+page.server.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4357659..dcb6ba6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scheddy", - "version": "0.0.4", + "version": "0.0.5", "type": "module", "scripts": { "dev": "vite dev", diff --git a/src/routes/(authed)/schedule/+page.server.ts b/src/routes/(authed)/schedule/+page.server.ts index 61448e9..7e3788e 100644 --- a/src/routes/(authed)/schedule/+page.server.ts +++ b/src/routes/(authed)/schedule/+page.server.ts @@ -100,6 +100,11 @@ function slottificate( const interval = Interval.fromDateTimes(start, end); console.log(interval); + if (interval.start == null) { + console.log("-- INVALID INTERVAL --"); + console.log(start); + console.log(end); + } availablePeriodsMentorsTime.push(interval); }