fix: name count 3 player issue
This commit is contained in:
@@ -195,7 +195,7 @@ class PlayerDao extends DatabaseAccessor<AppDatabase> with _$PlayerDaoMixin {
|
||||
if (previousNameCount > 1) {
|
||||
// Multiple players
|
||||
final nameCount = await getNameCount(name: previousPlayerName);
|
||||
await updateNameCount(playerId: player!.id, nameCount: nameCount - 1);
|
||||
await updateNameCount(playerId: player!.id, nameCount: nameCount);
|
||||
} else {
|
||||
// Only one player
|
||||
await updateNameCount(playerId: player!.id, nameCount: 0);
|
||||
|
||||
Reference in New Issue
Block a user