We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a50024 commit e6fa60bCopy full SHA for e6fa60b
1 file changed
src/pages/profile/profile.ts
@@ -22,9 +22,10 @@ export class ProfilePage implements OnInit {
22
) {}
23
24
ngOnInit(): void {
25
- this.profile = Meteor.user().profile || {
26
- name: ''
27
- };
+ this.profile = (({name = '', pictureId} = {}) => ({
+ name,
+ pictureId
28
+ }))(Meteor.user().profile);
29
30
MeteorObservable.subscribe('user').subscribe(() => {
31
let platform = this.platform.is('android') ? "android" :
0 commit comments