diff --git a/app/components/signout-link.js b/app/components/signout-link.js index 103f354..15f161d 100644 --- a/app/components/signout-link.js +++ b/app/components/signout-link.js @@ -7,7 +7,7 @@ export default Ember.Component.extend({ if(this.get('avatarAttribute')){ this.setProperties({ isAvatarPresent: !Ember.isEmpty(currentUser.get(this.get('avatarAttribute'))), - avatarUrl: currentUser.get(this.get('avatarAttribute')).get('thumb_url') + avatarUrl: currentUser.get(this.get('avatarAttribute.thumb_url')) }); } this.set('username', currentUser.get(this.get('nameAttribute'))); @@ -18,4 +18,4 @@ export default Ember.Component.extend({ this.sendAction('signoutAction'); } } -}); \ No newline at end of file +});