diff --git a/frontend/static/js/api/profile.js b/frontend/static/js/api/profile.js index dfa29e6..1ec7987 100644 --- a/frontend/static/js/api/profile.js +++ b/frontend/static/js/api/profile.js @@ -21,7 +21,7 @@ class Profile let response = await this.client._get(`/api/profiles/${user_id}`); let response_data = await response.json(); - this.user_id = response.user_id; + this.user_id = response_data.user_id; this.username = response_data.username; this.avatar_url = response_data.avatar_url; }