Skip to content

Commit

Permalink
update console messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rileythomp committed Jul 15, 2024
1 parent 72c234c commit cc5529a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
4 changes: 1 addition & 3 deletions fe-jeopardy/src/app/game/chat/chat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ChatComponent implements OnInit, AfterViewChecked {
let resp = JSON.parse(event.data)

if (resp.code >= 4400) {
console.log(resp.message)
console.error(resp.message)
this.messages.push({
username: 'Jeopardy System',
message: resp.message,
Expand All @@ -47,8 +47,6 @@ export class ChatComponent implements OnInit, AfterViewChecked {
return
}

console.log(resp)

this.messages.push({
username: resp.name,
message: resp.message,
Expand Down
2 changes: 0 additions & 2 deletions fe-jeopardy/src/app/game/game.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ export class GameComponent implements OnInit {
this.player.updatePlayer(resp.curPlayer)
this.gameMessage = resp.message

console.log(resp)

if (resp.code == 4100) {
this.modal.displayMessage(resp.message)
return
Expand Down
3 changes: 1 addition & 2 deletions fe-jeopardy/src/app/game/post-game/post-game.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class PostGameComponent {
playAgain() {
return this.api.PlayAgain().subscribe({
next: (resp: any) => {
console.log(resp)
},
error: (err: any) => {
let msg = err.status != 0 ? err.error.message : ServerUnavailableMsg;
Expand All @@ -53,7 +52,7 @@ export class PostGameComponent {
},
error: (err: any) => {
let msg = err.status != 0 ? err.error.message : ServerUnavailableMsg;
console.log(msg)
console.error(msg)
this.router.navigate(['/'])
},
})
Expand Down
6 changes: 1 addition & 5 deletions fe-jeopardy/src/app/reactions/reactions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ export class ReactionsComponent {

this.reactions.OnOpen(() => {
this.reactions.Send({ token: this.jwt.GetJWT() })
console.log('Connected to reactions service')
})

this.reactions.OnMessage((event: { data: string }) => {
let resp = JSON.parse(event.data)
console.log('Received reaction:', resp)

if (resp.code >= 4400) {
console.log(resp.reaction)
console.error(resp.reaction)
this.reactionsList.push({
username: 'Jeopardy System',
reaction: resp.reaction,
Expand All @@ -60,8 +58,6 @@ export class ReactionsComponent {
return
}

console.log(resp)

this.reactionsList.push({
username: resp.name,
reaction: resp.reaction,
Expand Down

0 comments on commit cc5529a

Please sign in to comment.