Skip to content

Commit

Permalink
Added some logs to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathakurxd committed Mar 4, 2024
1 parent fc347f1 commit 9ce38f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/JoinForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ const JoinForm = () => {
})

const hmsRoomsAPIResponse = await response.json()
console.log('hmsRoomsAPIResponse', hmsRoomsAPIResponse)

if (hmsRoomsAPIResponse) {
const roomId = hmsRoomsAPIResponse.body.id
console.log('roomId', roomId)

const res = await fetch('/api/create', {
method: 'POST',
Expand All @@ -52,7 +54,9 @@ const JoinForm = () => {
})

const hmsRoomCodesAPIResponse = await res.json()
console.log('room codes', hmsRoomCodesAPIResponse)
const data = hmsRoomCodesAPIResponse.body.data
console.log('data', data)

if (data.length >= 2) {
const roomCodeForStudent = data[0].code
Expand Down

0 comments on commit 9ce38f5

Please sign in to comment.