fix(users): first sign in, level show error

This commit is contained in:
OldHawk
2017-06-13 09:42:07 +08:00
parent 65432e4636
commit 8567bb4617
5 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@
vm.authentication = Authentication;
vm.isCollapsed = false;
vm.menu = menuService.getMenu('topbar');
vm.scoreLevelData = ScoreLevelService.getScoreLevelJson(vm.user.score);
vm.scoreLevelData = vm.user ? ScoreLevelService.getScoreLevelJson(vm.user.score) : undefined;
$scope.$on('$stateChangeSuccess', stateChangeSuccess);