Skip to content

Commit

Permalink
Fix: 잘못된 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Oct 8, 2023
1 parent 5434ced commit 13d4269
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/RoundCheckIn/CallAdminChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const CallAdminChat = ({
}, [client]);

useEffect(() => {
if (matchMessage.length === 0) return;
if (!matchMessage || matchMessage.length === 0) return;
setChats(matchMessage);
}, [matchMessage]);

Expand Down
10 changes: 5 additions & 5 deletions src/components/RoundCheckIn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface GetMatchPlayerScoreInfos {
requestMatchPlayerId: number;
currentMatchRound: number;
totalMatchRound: number;
matchPlayerScoreInfos: MatchPlayerScoreInfos[];
matchPlayerInfos: MatchPlayerScoreInfos[];
matchMessage: MatchMessages[];
}

Expand All @@ -60,7 +60,7 @@ const RoundCheckIn = ({ channelLink, matchId }: RoundCheckInProps) => {
}

setMatchPlayers(res.data);
const readyUser = res.data.matchPlayerScoreInfos
const readyUser = res.data.matchPlayerInfos
.filter((info) => info.playerStatus === 'READY')
.map((info) => info.matchPlayerId);

Expand Down Expand Up @@ -107,7 +107,7 @@ const RoundCheckIn = ({ channelLink, matchId }: RoundCheckInProps) => {
<FlexWrapper>
<CheckInfo>
<Icon kind='team' />
<div>{matchPlayers ? matchPlayers.matchPlayerScoreInfos.length : 0}</div>
<div>{matchPlayers ? matchPlayers.matchPlayerInfos.length : 0}</div>
</CheckInfo>
<CheckInfo>
<Icon kind='checked' color='1975FF' />
Expand All @@ -119,13 +119,13 @@ const RoundCheckIn = ({ channelLink, matchId }: RoundCheckInProps) => {
<PlayerLists
requestUser={matchPlayers ? matchPlayers.requestMatchPlayerId : -1}
checkInUsers={checkInUser}
players={matchPlayers ? matchPlayers.matchPlayerScoreInfos : []}
players={matchPlayers ? matchPlayers.matchPlayerInfos : []}
/>
<CheckInPage
ParticipantCheckin={() => participantCheckin()}
client={client}
matchId={matchId}
players={matchPlayers ? matchPlayers.matchPlayerScoreInfos : []}
players={matchPlayers ? matchPlayers.matchPlayerInfos : []}
matchMessage={matchPlayers ? matchPlayers.matchMessage : []}
requestUser={matchPlayers ? matchPlayers.requestMatchPlayerId : -1}
/>
Expand Down

0 comments on commit 13d4269

Please sign in to comment.