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')
|
@computed('badge.url', 'filterUser')
|
||||||
url(badgeUrl, filterUser) {
|
url(badgeUrl, filterUser) {
|
||||||
return (filterUser) ?
|
return (filterUser && this.currentUser) ?
|
||||||
`${badgeUrl}?username=${this.currentUser.get('username_lower')}` :
|
`${badgeUrl}?username=${this.currentUser.get('username_lower')}` :
|
||||||
badgeUrl;
|
badgeUrl;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue