diff --git a/src/routes/(authed)/dash/sessions/[sessionId]/+page.svelte b/src/routes/(authed)/dash/sessions/[sessionId]/+page.svelte index 2453d6f..f578780 100644 --- a/src/routes/(authed)/dash/sessions/[sessionId]/+page.svelte +++ b/src/routes/(authed)/dash/sessions/[sessionId]/+page.svelte @@ -41,7 +41,7 @@ } function reschedule_helper() { - if (!data.isMentor) { + if (data.isMentor) { rescheduleOpen = true; } else { const queryParam = new URLSearchParams(); diff --git a/src/routes/(authed)/schedule/+page.server.ts b/src/routes/(authed)/schedule/+page.server.ts index a6bfdf5..26873e9 100644 --- a/src/routes/(authed)/schedule/+page.server.ts +++ b/src/routes/(authed)/schedule/+page.server.ts @@ -188,7 +188,7 @@ export const load: PageServerLoad = async ({ cookies, url }) => { ? url.searchParams.get('type') : null; - const orginalSessionId = url.searchParams.get('sessionId')!; + const originalSessionId = url.searchParams.get('sessionId')!; return { user, @@ -199,7 +199,7 @@ export const load: PageServerLoad = async ({ cookies, url }) => { sessionTypes: sTypes, slotData, originalSessionType, - orginalSessionId + originalSessionId }; }; @@ -283,7 +283,8 @@ export const actions: Actions = { mentor: slotObj.mentor, student: user.id, start: start.toISO(), - type: requestedType + type: requestedType, + timezone }); if (reschedule) {