mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-15 02:32:22 +00:00
Merge pull request #8237 from TheHollidayInn/login-progress-counter-fix
Fixed login counter on the first day
This commit is contained in:
commit
254d1a3465
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue