From b80ced0877504663def8d708aefe78d68dd81bf1 Mon Sep 17 00:00:00 2001 From: Farber Denis Date: Tue, 21 Mar 2023 17:08:26 +0300 Subject: [PATCH] fix(#in441): comment fix --- .../components/PlayersTable/hooks/usePlayers.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/features/MatchSidePlaylists/components/PlayersTable/hooks/usePlayers.tsx b/src/features/MatchSidePlaylists/components/PlayersTable/hooks/usePlayers.tsx index f49c06c4..08643dff 100644 --- a/src/features/MatchSidePlaylists/components/PlayersTable/hooks/usePlayers.tsx +++ b/src/features/MatchSidePlaylists/components/PlayersTable/hooks/usePlayers.tsx @@ -33,9 +33,7 @@ export const usePlayers = ({ sortCondition, teamId }: UsePlayersArgs) => { ) const getPlayerName = useCallback((player: Player) => ( - player[`lastname_${suffix}`] === '' - ? player[`firstname_${suffix}`] - : trim(player[`lastname_${suffix}`] || '') + trim(player[`lastname_${suffix}`]) || player[`firstname_${suffix}`] ), [suffix]) const getParamValue = useCallback((playerId: number, paramId: number) => {