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 (