From b44e3bac6ffcd8e4f75e02eb4d10ec99c9b159d5 Mon Sep 17 00:00:00 2001 From: Xamora Date: Fri, 2 Feb 2024 11:16:25 +0100 Subject: [PATCH] profile page --- frontend/static/js/views/ProfilePageView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/static/js/views/ProfilePageView.js b/frontend/static/js/views/ProfilePageView.js index 88ab8f7..b289a9f 100644 --- a/frontend/static/js/views/ProfilePageView.js +++ b/frontend/static/js/views/ProfilePageView.js @@ -57,9 +57,9 @@ export default class extends AbstractView { block.id = "block"; block.onclick = async () => { if (!this.profile.isBlocked) - await client.profiles.block(this.userId); + await client.profiles.block(this.user_id); else - await client.profiles.deblock(this.userId); + await client.profiles.deblock(this.user_id); this.profile = await client.profiles.getProfile(this.username); this.blockButton();