diff --git a/frontend/static/js/views/ProfilePageView.js b/frontend/static/js/views/ProfilePageView.js index 8b27e81..65e94fa 100644 --- a/frontend/static/js/views/ProfilePageView.js +++ b/frontend/static/js/views/ProfilePageView.js @@ -111,7 +111,7 @@ export default class extends AbstractView { client.me.outgoingFriendRequests = client.me.outgoingFriendRequests.filter(profile => profile.id !== this.profile.id); } else if (response.status === 201) { this.profile.isFriend = false; - client.me.friendList = client.me.friendList.client.me.incomingFriendRequests = filter(friend => friend.id !== this.profile.id); + client.me.friendList = client.me.friendList.filter(friend => friend.id !== this.profile.id); } }