Skip to content

fix(streak-count): Fix streak count calculation #54

fix(streak-count): Fix streak count calculation

fix(streak-count): Fix streak count calculation #54

Triggered via pull request November 8, 2024 01:28
Status Success
Total duration 1m 29s
Artifacts

firebase-preview.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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