From 2d1639ca62c34ea2c63bdaf25eb5ca0d680c6490 Mon Sep 17 00:00:00 2001 From: Newton Chung Date: Fri, 29 May 2026 22:11:15 -0700 Subject: [PATCH] Fixed Undefined classroom join link --- components/ClassInviteTable.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/ClassInviteTable.js b/components/ClassInviteTable.js index 5501a308a..8809f47b0 100644 --- a/components/ClassInviteTable.js +++ b/components/ClassInviteTable.js @@ -30,12 +30,11 @@ export default function ClassInviteTable({ ); const ref = useRef(); - const userCurrentDomain = process.env.NEXTAUTH_URL; const copy = async () => { //Add the full URL to send to student await navigator.clipboard.writeText( - `${userCurrentDomain}/join/` + currentClass.classroomId + `${window.location.origin}/join/${currentClass.classroomId}` ); toast('Class code successfully copied', {