Skip to content

Commit

Permalink
fix: target detection should not for goal (#17)
Browse files Browse the repository at this point in the history
target detection should not for goal
  • Loading branch information
ZL-Asica authored Nov 1, 2024
1 parent d027024 commit f5f8525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useGoalsUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const useGoalsUpdater = () => {
target = target?.microgoals[microGoalIndex];
}

if (!target) {
if (!target && itemType !== 'goal') {
console.error(`${itemType} does not exist`);
return;
}
Expand Down

0 comments on commit f5f8525

Please sign in to comment.