Skip to content

Commit

Permalink
[fix] boostcampwm-2022#85 전역상태 수정 시, 미반영된 부분 변경
Browse files Browse the repository at this point in the history
- username -> id로 변경하는 과정에서 미반영된 부분들 반영
  • Loading branch information
ktmihs committed Dec 8, 2022
1 parent 27e8a5f commit fd6c3e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/component/Call/callingItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const CallingItem = ({
const [friends, setFriends] = useRecoilState(friendsState);

const handleRejectCall = () => {
friends.id &&
friends[id] &&
setFriends({
...friends,
[id]: {
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/component/Call/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ const Call = () => {
return (
<div css={callingWrapper}>
{friendList.map(friend => (
<CallingItem id={friend.id} nickname={friend.nickname} isSend={false} />
<CallingItem
key={friend.id}
id={friend.id}
nickname={friend.nickname}
isSend={true}
/>
))}
{isSend.id && (
<CallingItem
id={isSend.id}
nickname={isSend.nickname}
isSend={true}
isSend={false}
setSend={setSend}
/>
)}
Expand Down

0 comments on commit fd6c3e6

Please sign in to comment.