Permalink
Browse files

Step 17.5: Filter user profile

  • Loading branch information...
darkbasic committed Jun 12, 2017
1 parent fd3335f commit 166799fd6cc84bd53417b4471a7f7f6bb00f109f
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 166799f

Please sign in to comment.