mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
small chance
This commit is contained in:
parent
7d22602b9a
commit
3444449048
1 changed files with 1 additions and 1 deletions
|
|
@ -90,6 +90,6 @@ module.exports.app = (appExports, model) ->
|
|||
$('#streak-achievement-modal').modal('show')
|
||||
|
||||
# they're undoing a task at the 21 mark, take back their badge
|
||||
if (before - after is 1) and (before % 21 is 0)
|
||||
else if (before - after is 1) and (before % 21 is 0)
|
||||
dontPersist = model._dontPersist; model._dontPersist = false
|
||||
user.incr 'achievements.streak', -1, (-> model._dontPersist = dontPersist)
|
||||
|
|
|
|||
Loading…
Reference in a new issue