Permalink
Browse files

Step 17.5: Filter user profile

  • Loading branch information...
darkbasic committed Jun 12, 2017
1 parent 7a50024 commit e6fa60b3e5776c6402137b80643979d0b628014d
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/pages/profile/profile.ts
@@ -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" :

0 comments on commit e6fa60b

Please sign in to comment.