show default avatar if user does not have one
This commit is contained in:
parent
dc504655ce
commit
bee5f3d5d5
|
|
@ -45,7 +45,6 @@
|
|||
};
|
||||
|
||||
var _logger = context.JK.logger;
|
||||
var _sessionLatency;
|
||||
|
||||
/**
|
||||
* Render a single session line into the table.
|
||||
|
|
@ -94,8 +93,9 @@
|
|||
|
||||
var id = participant.user.id;
|
||||
var name = participant.user.name;
|
||||
var photoUrl = participant.user.photo_url ? participant.user.photo_url : "/assets/shared/avatar_default.jpg";
|
||||
var musicianVals = {
|
||||
avatar_url: participant.user.photo_url,
|
||||
avatar_url: photoUrl,
|
||||
profile_url: "users/" + id,
|
||||
musician_name: name,
|
||||
instruments: instrumentLogoHtml
|
||||
|
|
|
|||
Loading…
Reference in New Issue