diff --git a/src/pages/profile/profile.ts b/src/pages/profile/profile.ts index 29c7be9b2..9d1cb86b2 100644 --- a/src/pages/profile/profile.ts +++ b/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" :