FIX: The user might be anonymous

This commit is contained in:
Robin Ward 2017-05-03 18:39:02 -04:00
parent 60693240e1
commit b3908a1d7f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}, },