Merge branch 'development' into feature/202-live-edit-modus
This commit is contained in:
@@ -271,14 +271,14 @@ class _CreateMatchViewState extends State<CreateMatchView> {
|
||||
if (widget.matchToEdit!.name != updatedMatch.name) {
|
||||
await db.matchDao.updateMatchName(
|
||||
matchId: widget.matchToEdit!.id,
|
||||
newName: updatedMatch.name,
|
||||
name: updatedMatch.name,
|
||||
);
|
||||
}
|
||||
|
||||
if (widget.matchToEdit!.group?.id != updatedMatch.group?.id) {
|
||||
await db.matchDao.updateMatchGroup(
|
||||
matchId: widget.matchToEdit!.id,
|
||||
newGroupId: updatedMatch.group?.id,
|
||||
groupId: updatedMatch.group?.id,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -293,9 +293,9 @@ class _MatchResultViewState extends State<MatchResultView> {
|
||||
/// Handles saving or removing the loser in the database.
|
||||
Future<bool> _handleLoser() async {
|
||||
if (_selectedPlayer == null) {
|
||||
return await db.scoreEntryDao.removeLooser(matchId: widget.match.id);
|
||||
return await db.scoreEntryDao.removeLoser(matchId: widget.match.id);
|
||||
} else {
|
||||
return await db.scoreEntryDao.setLooser(
|
||||
return await db.scoreEntryDao.setLoser(
|
||||
matchId: widget.match.id,
|
||||
playerId: _selectedPlayer!.id,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user