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); }