From 77800f000b4618d2e8ede2be4e79c05c91e74f2f Mon Sep 17 00:00:00 2001 From: opak Date: Sun, 5 Apr 2015 18:38:28 +0300 Subject: [PATCH] Update signout-link.js --- app/components/signout-link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +});