diff --git a/src/assets/scripts/profile/profile.controller.js b/src/assets/scripts/profile/profile.controller.js index 18f76d4..ec9fe3c 100644 --- a/src/assets/scripts/profile/profile.controller.js +++ b/src/assets/scripts/profile/profile.controller.js @@ -7,8 +7,7 @@ const ProfileController = ($scope, $timeout, ProfileService, UserService) => { // Listen for event to do operations $scope.$on('loadUserSuccess', function (event, user) { $scope.user = user; - $scope.userUpdated = {}; - + // Fetch user info for the profile ProfileService.fetchProfileService($scope.user.id) .then((result) => { @@ -35,7 +34,7 @@ const ProfileController = ($scope, $timeout, ProfileService, UserService) => { $scope.processing = "Sending the data..." - ProfileService.updateUserProfile($scope.user.id, $scope.userUpdated) + ProfileService.updateUserProfile($scope.user.id, $scope.profile) .then((result)=>{ console.log(result); $scope.messages = 'Your profile has been updated!'; diff --git a/src/assets/scripts/profile/profile.html b/src/assets/scripts/profile/profile.html index 15d50fa..14a0a74 100644 --- a/src/assets/scripts/profile/profile.html +++ b/src/assets/scripts/profile/profile.html @@ -37,17 +37,17 @@
First Name Required! -
Middle Name - +
Last Name Required! -
@@ -57,18 +57,18 @@ Email Address Required! Invalid email! - +
Phone Number Required! -
State of residence in Australia Required! - @@ -83,7 +83,7 @@
Nationality Required! - @@ -283,7 +283,7 @@
Visa Type Required! - + +
@@ -381,12 +381,12 @@
Main Classification
Required! - +
Skills
Required! - +
@@ -400,19 +400,19 @@
Twitter - +
Facebook - +
Instagram - +
Linkedin - +