1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-30 23:44:59 +02:00

very slight simplification of defaultPhoto

This commit is contained in:
Diego Cepeda
2017-06-07 10:26:26 -07:00
committed by Qingping Hou
parent ec019c905a
commit d693ebdb01

View File

@@ -2395,12 +2395,7 @@ var oncall = {
//takes a photo_url and if null retuns the default blank headshot-blank
Handlebars.registerHelper('defaultPhoto', function(src){
// removes hash tag from string
if(src == null){
return "/static/images/headshot-blank.jpg";
}
else{
return src;
}
return src || "/static/images/headshot-blank.jpg";
});