Merge pull request #2302 from coreos-inc/FIX-more-fe-bugs

fix(update-user.js): add another existence check
This commit is contained in:
Erica 2017-01-24 12:17:14 -05:00 committed by GitHub
commit 82898d05f3

View file

@ -50,7 +50,7 @@
$scope.state = 'updating';
ApiService.changeUserDetails(data).then(function() {
UserService.load(function(updated) {
if (updated.prompts.length) {
if (updated && updated.prompts && updated.prompts.length) {
$scope.state = 'editing';
} else {
$location.url('/');
@ -82,4 +82,4 @@
confirmUsername(username);
});
}
})();
})();