Skip to content

Commit

Permalink
Fix profile picture issue
Browse files Browse the repository at this point in the history
Fixed a bug where the profile picture of a user on the add-friends page would not show.
  • Loading branch information
MichaelLaffan1 committed Nov 7, 2023
1 parent edb270b commit 666f63d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/agora/public/js/friends.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function createUserCard( userData ){
username.id = userData.userId;
username.innerText = userData.username;
var userProfile = document.createElement( "img" );
userProfile.src = userData.profileFilename;
userProfile.width = 225;
userProfile.src = "/assets/uploads/profile/" + userData.profileFilename;
userProfile.alt = "user's profile";
var userContainer = document.createElement( "div" );
userContainer.id = "user-container-" + userData.userId;
Expand Down

0 comments on commit 666f63d

Please sign in to comment.