From f5f852530fc1b271cf8e0fe8baa7a0ff9bc9319d Mon Sep 17 00:00:00 2001 From: Elara Liu <40444637+ZL-Asica@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:11:12 -0500 Subject: [PATCH] fix: target detection should not for goal (#17) target detection should not for goal --- src/hooks/useGoalsUpdater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useGoalsUpdater.js b/src/hooks/useGoalsUpdater.js index 003f272..6536fc0 100644 --- a/src/hooks/useGoalsUpdater.js +++ b/src/hooks/useGoalsUpdater.js @@ -21,7 +21,7 @@ const useGoalsUpdater = () => { target = target?.microgoals[microGoalIndex]; } - if (!target) { + if (!target && itemType !== 'goal') { console.error(`${itemType} does not exist`); return; }