From fd6c3e648a26eb6692a8377ac6d5eeb07ee78d19 Mon Sep 17 00:00:00 2001 From: ktmihs Date: Fri, 9 Dec 2022 00:57:04 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20#85=20=EC=A0=84=EC=97=AD=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=EC=88=98=EC=A0=95=20=EC=8B=9C,=20=EB=AF=B8?= =?UTF-8?q?=EB=B0=98=EC=98=81=EB=90=9C=20=EB=B6=80=EB=B6=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - username -> id로 변경하는 과정에서 미반영된 부분들 반영 --- frontend/src/component/Call/callingItem.tsx | 2 +- frontend/src/component/Call/index.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/component/Call/callingItem.tsx b/frontend/src/component/Call/callingItem.tsx index e78e210..6aadaaa 100644 --- a/frontend/src/component/Call/callingItem.tsx +++ b/frontend/src/component/Call/callingItem.tsx @@ -19,7 +19,7 @@ const CallingItem = ({ const [friends, setFriends] = useRecoilState(friendsState); const handleRejectCall = () => { - friends.id && + friends[id] && setFriends({ ...friends, [id]: { diff --git a/frontend/src/component/Call/index.tsx b/frontend/src/component/Call/index.tsx index 1e8e2aa..242ea79 100644 --- a/frontend/src/component/Call/index.tsx +++ b/frontend/src/component/Call/index.tsx @@ -28,13 +28,18 @@ const Call = () => { return (
{friendList.map(friend => ( - + ))} {isSend.id && ( )}