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 && ( )} diff --git a/frontend/src/component/Game/game.ts b/frontend/src/component/Game/game.ts index 2a12db5..71fadd4 100644 --- a/frontend/src/component/Game/game.ts +++ b/frontend/src/component/Game/game.ts @@ -98,6 +98,8 @@ export default class Game extends Phaser.Scene { } create() { + this.cameras.main.setBounds(0, 0, 2000, 2000); + const map = this.make.tilemap({ key: 'map' }); const tileset = map.addTilesetImage('town', 'tileset'); this.townLayer = map.createLayer('town', tileset, 0, 0).setScale(2.5); diff --git a/frontend/src/component/Sidebar/Friends/friendItem.tsx b/frontend/src/component/Sidebar/Friends/friendItem.tsx index e3f4113..2dfaef3 100644 --- a/frontend/src/component/Sidebar/Friends/friendItem.tsx +++ b/frontend/src/component/Sidebar/Friends/friendItem.tsx @@ -37,7 +37,7 @@ const FriendItem = ({ friend }: { friend: friendType }) => { const newFriend = { ...friends }; - delete newFriend[nickname]; + delete newFriend[id]; setFriends(newFriend); alert(`${nickname}님을 언팔로우 하였습니다.`); @@ -50,7 +50,7 @@ const FriendItem = ({ friend }: { friend: friendType }) => { return (
-
{nickname}
+
{nickname}