Fixed violation level spelling and removed XP remnants from the player info screen

This commit is contained in:
Pauli Jokela
2017-03-25 12:49:36 +02:00
parent aefbb0d7b5
commit aefea1feeb
2 changed files with 13 additions and 6 deletions
+13
View File
@@ -17,6 +17,19 @@ function PlayerInfoController( $scope, rconService, $routeParams )
// set player data
$scope.info = players[i];
// remove xp remnants
if ($scope.info['CurrentLevel'] !== undefined)
delete $scope.info['CurrentLevel'];
if ($scope.info['UnspentXp'] !== undefined)
delete $scope.info['UnspentXp'];
// fix violation level
if ($scope.info['VoiationLevel'] !== undefined){
var violationLevel = $scope.info['VoiationLevel'];
delete $scope.info['VoiationLevel'];
$scope.info['ViolationLevel'] = violationLevel;
}
return;
}
}