diff --git a/src/app/profile/profile.page.html b/src/app/profile/profile.page.html
index 742e46e..2352fc9 100644
--- a/src/app/profile/profile.page.html
+++ b/src/app/profile/profile.page.html
@@ -6,8 +6,8 @@
- {{ userInfo.name }}
-
+ {{ userInfo.name }}
+
diff --git a/src/app/profile/profile.page.ts b/src/app/profile/profile.page.ts
index 99ffe29..b1fd661 100644
--- a/src/app/profile/profile.page.ts
+++ b/src/app/profile/profile.page.ts
@@ -25,14 +25,12 @@ export class ProfilePage implements OnInit {
this.userInfo = JSON.parse(localStorage.userInfo)['User Info'];
}
- updateUserInfo() {
+ updateUserInfo() {
let tempUserInfo = {
- id: this.userInfo.id,
- name: this.userInfo.name,
+ user_id: this.userInfo.id,
username: this.userInfo.username,
+ user_mobile: this.userInfo.mobile,
email: this.userInfo.email,
- mobile: this.userInfo.mobile,
- address: []
}
this.authService.updateUser(tempUserInfo).then((data) => {