AOSSIE-Org / AOSSIE-Org/DebateAI

[BUG]: Join Team Error Message Appears in the Wrong Section

Closed Beginner friendly
#487 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
84
Forks
198
Avg merge
2d 19h
Merged PRs (30d)
30

Description

### Bug Description

When a user enters an invalid team code in the Join by Team Code section and clicks Join Team, the request fails and the error message is displayed inside the Create New Team section instead of the Join by Team Code section.

The error message should appear directly below the team code input field, within the same Join by Team Code section, so users can clearly understand which action caused the error.

### Steps to Reproduce

Navigate to Team Debates.
Open the Team Builder section.
Enter an invalid team code, for example 123456.
Click Join Team.
Observe where the error message is displayed.

Expected Behavior
The error message should appear directly below the team code input field in the Join by Team Code section.

Actual Behavior
The error message appears inside the Create New Team section, making it unclear that the error is related to joining a team by code.

### Logs and Screenshots

Image

Image

### Environment Details

_No response_

### Impact

Medium - Feature works but has issues

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the Team Debates page by opening the Team Builder section and reproducing the invalid-code submission. Trace where the Join by Team Code error is rendered, then verify that it appears directly below the team code input rather than in Create New Team; repeat the reported steps to confirm the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.