Attempt to fix bug that turned all tasks into Dailies

This commit is contained in:
Sabe Jones
2013-12-24 16:22:24 -06:00
parent f8b1fbda51
commit 50ffe4dcda
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -408,6 +408,7 @@ api.wrap = (user) ->
# Turn tasks yellow, zero out streaks
_.each user.tasks, (task) ->
task.value = 0
_.each user.tasks, (task) ->
if task.type = 'daily'
task.streak = 0
# Reset all dynamic stats