Skip to content

Commit

Permalink
Step 17.5: Filter user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbasic committed Jun 13, 2017
1 parent 38b47dd commit 3b4052a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/profile/profile.ts
Expand Up @@ -22,9 +22,10 @@ export class ProfilePage implements OnInit {
) {}

ngOnInit(): void {
this.profile = Meteor.user().profile || {
name: ''
};
this.profile = (({name = '', pictureId} = {}) => ({
name,
pictureId
}))(Meteor.user().profile);

MeteorObservable.subscribe('user').subscribe(() => {
let platform = this.platform.is('android') ? "android" :
Expand Down

0 comments on commit 3b4052a

Please sign in to comment.