Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Available rooms #78

wants to merge 2 commits into from

Conversation

heatherSwinn
Copy link
Contributor

fixed formatting, removed passcode, and link to rooms goes into designated rooms.

}}
>
{room.passcode && <p>Passcode: {room.passcode}</p>}
{room._id && <p>Link: localhost:3000/challenge/{room._id}</p>}
Copy link
Contributor

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 }),
Copy link
Contributor

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({
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants