diff --git a/static/js/pages/update-user.js b/static/js/pages/update-user.js index 1df8f957c..2df5b7863 100644 --- a/static/js/pages/update-user.js +++ b/static/js/pages/update-user.js @@ -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); }); } -})(); \ No newline at end of file +})();