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 15, 2017
1 parent fd3335f commit 166799f
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 { ngOnInit(): void {
this.profile = Meteor.user().profile || { this.profile = (({name = '', pictureId} = {}) => ({
name: '' name,
}; pictureId
}))(Meteor.user().profile);


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

0 comments on commit 166799f

Please sign in to comment.