From e896f6dd219f85098b2b81399c32d24f19c74eef Mon Sep 17 00:00:00 2001 From: AdrienLSH Date: Fri, 22 Mar 2024 10:55:35 +0100 Subject: [PATCH] fix(ProfilePage): setTitle looked up in the language files for username --- frontend/static/js/views/ProfilePageView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/static/js/views/ProfilePageView.js b/frontend/static/js/views/ProfilePageView.js index 3b70262..55d5a3a 100644 --- a/frontend/static/js/views/ProfilePageView.js +++ b/frontend/static/js/views/ProfilePageView.js @@ -7,6 +7,10 @@ export default class extends AbstractView { this.username = decodeURI(params.username); } + setTitle() { + document.title = this.username; + } + async postInit() { this.profile = await client.profiles.getProfile(this.username);