AOSSIE-Org / AOSSIE-Org/DebateAI

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

Đang mở
#344 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
84
Fork
198
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
30

Mô tả

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."

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.