Commit 8f0ff80
committed
fix: resolve team names through tournament_teams.team_id fallback
When teams join a tournament with an existing team, tournament_teams.name
is NULL. The get_team_name function now falls back to the linked
teams.name via tournament_teams.team_id instead of showing the captain's
name.1 parent 2258138 commit 8f0ff80
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments