feat: enhance auction interactions and player statistics UI
This commit is contained in:
1 parent
6c582ba3cf
commit
be4de61bb7
115 files changed
+13292
-2871
No files matched your search
@@ -81,6 +81,7 @@ export interface AuctionTeamView {
|
||||
name: string;
|
||||
captainUserId: string;
|
||||
captainName: string;
|
||||
captain?: ParticipantView;
|
||||
points: number;
|
||||
members: (AuctionPlayerView & {
|
||||
assignedPosition: Position;
|
||||
@@ -253,13 +254,16 @@ function mapAuctionTeamToView(
|
||||
playerLookup: Map<string, AuctionPlayerView>,
|
||||
participantLookup: Map<string, ParticipantView>,
|
||||
): AuctionTeamView {
|
||||
const captain =
|
||||
participantLookup.get(team.captainUserId) ??
|
||||
playerLookup.get(team.captainUserId);
|
||||
|
||||
return {
|
||||
teamIndex: team.teamIndex,
|
||||
name: teamIndexLabel(team.teamIndex),
|
||||
captainUserId: team.captainUserId,
|
||||
captainName:
|
||||
participantLookup.get(team.captainUserId)?.summonerName ??
|
||||
`User ${team.captainUserId.slice(-4)}`,
|
||||
captainName: captain?.summonerName ?? `User ${team.captainUserId.slice(-4)}`,
|
||||
captain,
|
||||
points: team.points,
|
||||
members: team.members.map((member) => {
|
||||
const participant = participantLookup.get(member.userId);
|
||||
|
||||
Reference in new issue
Block a user