updated team tests
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 43s
Pull Request Pipeline / lint (pull_request) Successful in 55s

This commit is contained in:
2026-05-22 00:48:21 +02:00
parent df64ef4b93
commit 6fb4a8996c
6 changed files with 258 additions and 41 deletions

View File

@@ -362,10 +362,7 @@ class _MatchResultViewState extends State<MatchResultView> {
Future<bool> _handleLoser() async {
if (isTeamMatch) {
if (_selectedTeam == null) {
return await db.teamDao.removeLoserTeam(
matchId: widget.match.id,
teamId: _selectedTeam!.id,
);
return await db.teamDao.removeLoserTeam(matchId: widget.match.id);
} else {
return await db.teamDao.setLoserTeam(
matchId: widget.match.id,