From fbf9920765cd75aeaf06673eb4cfc4a1255e4bd5 Mon Sep 17 00:00:00 2001 From: ZL Asica <40444637+ZL-Asica@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:00:26 -0500 Subject: [PATCH] fix: 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; }