Merge pull request #2098 from coreos-inc/fix-update-user

Make sure to check for user before redirecting in update user
This commit is contained in:
josephschorr 2016-11-08 19:17:28 -05:00 committed by GitHub
commit 4853a26308

View file

@ -12,6 +12,7 @@
$scope.state = 'loading';
UserService.updateUserIn($scope, function(user) {
if (!user.anonymous) {
if (!user.prompts || !user.prompts.length) {
$location.path('/');
return;
@ -19,6 +20,7 @@
$scope.state = 'editing';
$scope.username = user.username;
}
});
var confirmUsername = function(username) {