fix(streak-count): Fix streak count calculation #54
firebase-preview.yml
on: pull_request
deploy-preview
1m 20s
Annotations
1 error
src/hooks/useGoalsUpdater.test.js > useGoalsUpdater > should toggle task completion status and update streak:
src/utils/streakUtils.js#L33
TypeError: Cannot read properties of undefined (reading '2024-11-07')
❯ Module.updateStreakDays src/utils/streakUtils.js:33:44
❯ Module.updateGoalsAndStreak src/hooks/useGoalsUpdater/updateHelpers.js:15:15
❯ Module.toggleTaskCompletion src/hooks/useGoalsUpdater/toggleOperations.js:15:9
❯ Object.toggleTaskCompletion src/hooks/useGoalsUpdater/index.js:56:7
❯ src/hooks/useGoalsUpdater.test.js:111:24
|