From 02bbaa6d9f501f162a257d612315697970e9f516 Mon Sep 17 00:00:00 2001 From: AdrienLSH Date: Tue, 23 Apr 2024 15:54:16 +0200 Subject: [PATCH] hotfix: profilepage remove friend function --- frontend/static/js/views/ProfilePageView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }