chg: usr: fine-tune the recent battle list #8
Deploy to Production / deploy (push) Successful in 27s
Deploy to Production / deploy (push) Successful in 27s
This commit is contained in:
@@ -46,6 +46,7 @@ final readonly class ProfileGameDto implements JsonSerializable
|
||||
public float $blueBonusPoints,
|
||||
public array $redBonusStats,
|
||||
public array $blueBonusStats,
|
||||
public bool $bothRegistered,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,8 @@ final readonly class ProfileGameDtoFactory
|
||||
redBonusPoints: $game->redBonusPoints ?? 0.0,
|
||||
blueBonusPoints: $game->blueBonusPoints ?? 0.0,
|
||||
redBonusStats: $game->redBonusStats ?? [],
|
||||
blueBonusStats: $game->blueBonusStats ?? [],
|
||||
blueBonusStats: $game->blueBonusStats ?? [],
|
||||
bothRegistered: $game->red !== null && $game->blue !== null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -128,6 +129,7 @@ final readonly class ProfileGameDtoFactory
|
||||
blueBonusPoints: $battle->blueBonusPoints,
|
||||
redBonusStats: $battle->redBonusStats,
|
||||
blueBonusStats: $battle->blueBonusStats,
|
||||
bothRegistered: !$battle->oppIsGuest,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user