From a0575d1db5e09cd9c494c4c0fe3a490ad96dccb3 Mon Sep 17 00:00:00 2001 From: AdrienLSH Date: Wed, 15 May 2024 14:10:18 +0200 Subject: [PATCH] removed some logs --- django/frontend/static/js/views/ProfilePageView.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/django/frontend/static/js/views/ProfilePageView.js b/django/frontend/static/js/views/ProfilePageView.js index 8127e73..3072991 100644 --- a/django/frontend/static/js/views/ProfilePageView.js +++ b/django/frontend/static/js/views/ProfilePageView.js @@ -174,8 +174,6 @@ export default class extends AbstractView { const removeFriendButton = document.getElementById('removeFriendButton'); const response = await client._post(`/api/profiles/friends/${this.profile.id}`); - const body = await response.json(); - console.log(body); if (response.ok) { removeFriendButton.classList.remove('d-none'); @@ -198,8 +196,6 @@ export default class extends AbstractView { statusIndicator = document.getElementById('statusIndicator'); const response = await client._delete(`/api/profiles/friends/${this.profile.id}`); - const body = await response.json(); - console.log(body); if (response.ok) { addFriendButton.innerHTML = 'Add Friend'; @@ -217,8 +213,6 @@ export default class extends AbstractView { async blockUser() { const response = await client._post(`/api/profiles/block/${this.profile.id}`); - const body = await response.json(); - console.log(body); if (response.ok) { document.getElementById('blockButton').classList.add('d-none'); @@ -230,8 +224,6 @@ export default class extends AbstractView { async unblockUser() { const response = await client._delete(`/api/profiles/block/${this.profile.id}`); - const body = await response.json(); - console.log(body); if (response.ok) { document.getElementById('unblockButton').classList.add('d-none');