Fixed login counter on the first day

This commit is contained in:
Keith Holliday
2016-11-26 10:30:09 -06:00
parent a48b8f0e34
commit bcb0ed0a5c

View File

@@ -94,6 +94,7 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
$scope.getProgressDisplay = function () {
var currentLoginDay = Content.loginIncentives[$scope.profile.loginIncentives];
var nextRewardAt = currentLoginDay.nextRewardAt;
if (!currentLoginDay.prevRewardKey) currentLoginDay.prevRewardKey = 0;
return ' ' + ($scope.profile.loginIncentives - currentLoginDay.prevRewardKey) + '/' + (nextRewardAt - currentLoginDay.prevRewardKey);
};