FIX: The user might be anonymous
This commit is contained in:
parent
60693240e1
commit
b3908a1d7f
|
@ -7,7 +7,7 @@ export default Ember.Component.extend({
|
|||
|
||||
@computed('badge.url', 'filterUser')
|
||||
url(badgeUrl, filterUser) {
|
||||
return (filterUser) ?
|
||||
return (filterUser && this.currentUser) ?
|
||||
`${badgeUrl}?username=${this.currentUser.get('username_lower')}` :
|
||||
badgeUrl;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue