From 344444904841a293b877a22d0c3e18406a255a0a Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sat, 4 May 2013 10:44:06 +0100 Subject: [PATCH] small chance --- src/app/unlock.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/unlock.coffee b/src/app/unlock.coffee index f542fdbd70..7a240aea7e 100644 --- a/src/app/unlock.coffee +++ b/src/app/unlock.coffee @@ -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)