diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html index b8af4af8..43470706 100644 --- a/src/app/home/home.page.html +++ b/src/app/home/home.page.html @@ -44,7 +44,7 @@ - + {{contact.name}} diff --git a/src/app/user-contact/user-contact.page.ts b/src/app/user-contact/user-contact.page.ts index a3a1aa0a..1097b9cd 100644 --- a/src/app/user-contact/user-contact.page.ts +++ b/src/app/user-contact/user-contact.page.ts @@ -23,7 +23,7 @@ export class UserContactPage implements OnInit { }else{ this.firebase = new FirebaseBackendService(firebase.auth().currentUser.uid); this.route.params.subscribe(dat => { - this.profile = dat['contact']; + this.profile = JSON.parse(dat['contact']); this.initGrid(); }); }