Fix: Winner gets resetted, if player gets removed from the game
This commit is contained in:
@@ -315,6 +315,9 @@ class _CreateMatchViewState extends State<CreateMatchView> {
|
||||
matchId: widget.match!.id,
|
||||
playerId: player.id,
|
||||
);
|
||||
if (widget.match!.winner?.id == player.id) {
|
||||
updatedMatch.winner = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user