FIX: Only look for `fa-` at the beginning of the field. Allows urls with

that combination in it. Thanks @riking
This commit is contained in:
Robin Ward 2014-11-05 11:52:22 -05:00
parent d22b668393
commit ea0c6df839
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export default ObjectController.extend({
hasCardBadgeImage: function() {
var img = this.get('user.card_badge.image');
return img && img.indexOf('fa-') === -1;
return img && img.indexOf('fa-') === 0;
}.property('user.card_badge.image'),
show: function(username, uploadedAvatarId) {