AOSSIE-Org / AOSSIE-Org/DebateAI

Concede message shown incorrectly + pre-existing ESLint errors in OnlineDebateRoom.tsx

Abierto
#344 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
84
Forks
198
Merge medio
2 d 19 h
PR fusionados (30 d)
30

Descripción

When a user concedes the debate, both users receive "You win!" due to the WebSocket concede event being broadcast to all participants without checking who was the sender. Additionally, the file had 13 pre-existing ESLint errors including unused variables, empty catch blocks, and implicit any types.

Screenshot:
Image

Steps to Reproduce:
Open a debate room in two browsers
One user clicks Concede
Both users incorrectly see "You win! "

Expected Behavior: Only the opponent should see "You win!". The conceding user should see "You have conceded."

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.