mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-16 11:11:43 +00:00
* Fix User > Profile showing {getProgressDisplay()}
* Remove bad nextRewardAt check
This commit is contained in:
parent
68f4275c44
commit
e395182c95
1 changed files with 1 additions and 1 deletions
|
|
@ -93,8 +93,8 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
|
|||
|
||||
$scope.getProgressDisplay = function () {
|
||||
var currentLoginDay = Content.loginIncentives[$scope.profile.loginIncentives];
|
||||
if (!currentLoginDay) return env.t('moreIncentivesComingSoon');
|
||||
var nextRewardAt = currentLoginDay.nextRewardAt;
|
||||
if (!currentLoginDay || !nextRewardAt) return env.t('moreIncentivesComingSoon');
|
||||
if (!currentLoginDay.prevRewardKey) currentLoginDay.prevRewardKey = 0;
|
||||
return env.t('checkinProgressTitle') + ' ' + ($scope.profile.loginIncentives - currentLoginDay.prevRewardKey) + '/' + (nextRewardAt - currentLoginDay.prevRewardKey);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue