-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Available rooms #78
base: main
Are you sure you want to change the base?
Available rooms #78
Conversation
}} | ||
> | ||
{room.passcode && <p>Passcode: {room.passcode}</p>} | ||
{room._id && <p>Link: localhost:3000/challenge/{room._id}</p>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adjust this to reference a generic url - in production, it won't be localhost:3000
.
@@ -117,10 +117,9 @@ export default function AvailableRooms() { | |||
headers: { | |||
"Content-Type": 'application/json' | |||
}, | |||
body: JSON.stringify({ passcode, recruiterId: session.user._id }), | |||
body: JSON.stringify({ recruiterId: session.user._id }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
passcode
is still a required field for this POST
route - please retain it
// required session: https://next-auth.js.org/getting-started/client#require-session | ||
required: true | ||
}); | ||
const { data: session } = useSession({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you just adjust the indentation or something?
fixed formatting, removed passcode, and link to rooms goes into designated rooms.