From 90aeeb3896207c0fc8cd3daff4f2fc48d3d503df Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 28 Sep 2016 15:50:15 -0700 Subject: [PATCH] Use profile route to update the display name --- webadmin/src/views/account.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webadmin/src/views/account.js b/webadmin/src/views/account.js index 5ba7cb60a..33c9ce1f4 100644 --- a/webadmin/src/views/account.js +++ b/webadmin/src/views/account.js @@ -135,11 +135,10 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client $scope.displayNameChange.busy = true; var user = { - id: $scope.user.id, displayName: $scope.displayNameChange.displayName }; - Client.updateUser(user, function (error) { + Client.updateProfile(user, function (error) { $scope.displayNameChange.busy = false; if (error) {