fix(invitations): show Correct score level when user sign in/up

This commit is contained in:
OldHawk
2017-06-14 10:27:09 +08:00
parent ddb9b05756
commit 88be3c96bf
4 changed files with 8 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
$scope.$on('$stateChangeSuccess', stateChangeSuccess);
$scope.$on('auth-user-score-changed', function(event, args) {
$scope.$on('auth-user-changed', function(event, args) {
vm.user = Authentication.user;
vm.scoreLevelData = vm.user ? ScoreLevelService.getScoreLevelJson(vm.user.score) : undefined;
});