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 Oct 16, 2017
1 parent 7a50024 commit e6fa60b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/profile/profile.ts
Original file line number Diff line number Diff line change
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 e6fa60b

Please sign in to comment.