Skip to content

Commit

Permalink
lint 2
Browse files Browse the repository at this point in the history
  • Loading branch information
megascatterbomb committed Mar 21, 2024
1 parent cf086a5 commit c03968c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/TF2/Player/playerutils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ function getCheaterFriendsInLobby(
player: PlayerInfo,
cheatersInLobby: PlayerInfo[],
): PlayerInfo[] {
return cheatersInLobby.filter((c) =>
player.friends?.some((f) => f.steamID64 === c.steamID64),
return cheatersInLobby.filter(
(c) => player.friends?.some((f) => f.steamID64 === c.steamID64),
);
}

function hasCheaterFriendsInLobby(
player: PlayerInfo,
cheatersInLobby: PlayerInfo[],
): boolean {
return cheatersInLobby.some((c) =>
player.friends?.some((f) => f.steamID64 === c.steamID64),
return cheatersInLobby.some(
(c) => player.friends?.some((f) => f.steamID64 === c.steamID64),
);
}

Expand Down Expand Up @@ -158,14 +158,14 @@ function buildIconList(
player.gameInfo.state === 'Disconnected'
? './kiwi_gray.webp'
: player.gameInfo.team === 0
? './kiwi_unassigned.webp'
: player.gameInfo.team === 1
? './kiwi_spectator.webp'
: player.gameInfo.team === 2
? './kiwi_red.webp'
: player.gameInfo.team === 3
? './kiwi_blue.webp'
: './kiwi_white.webp';
? './kiwi_unassigned.webp'
: player.gameInfo.team === 1
? './kiwi_spectator.webp'
: player.gameInfo.team === 2
? './kiwi_red.webp'
: player.gameInfo.team === 3
? './kiwi_blue.webp'
: './kiwi_white.webp';

return [
hasAlias && (
Expand Down

0 comments on commit c03968c

Please sign in to comment.