Skip to content

Commit

Permalink
fix: target detection should not for goal
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 1, 2024
1 parent d027024 commit fbf9920
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 fbf9920

Please sign in to comment.